- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Route probelm
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:02 AM
09-26-2005 03:02 AM
Route probelm
I have a problem with my Hp-UX server. i am having 2 NIC'c configured in the server,
LAN0 with 192.168.200.24 with default gateway 192.168.200.4 & LAN1 with 192.168.199.2 no gateway( this one we are using for IP san)
when i am trying to ping to external IP from server it gives me warning multiple interfaces found & uses 192.168.199.2 IP NIC & then it couldn't ping outside.
How can make sure that all outgoing trafice will go via 192.168.200.24.
please advice
many thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:06 AM
09-26-2005 03:06 AM
Re: Route probelm
Assuming that you are using 255.255.255.0
Add a custome route
route add net 192.168.199.0 netmask 255.255.255.0 192.168.200.4 1
Now do a traceroute and ping commands to test .If it works then consider this putting in a startup script under /sbin/init.d
Thanks,
BL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:07 AM
09-26-2005 03:07 AM
Re: Route probelm
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:13 AM
09-26-2005 03:13 AM
Re: Route probelm
yes subnet Mask is 255.255.255.0, i want to ping 192.10.10.30 & it should go thro' 192.168.200.24 & not thro' 192.168.199.2
please advice what exactly i should do,
many thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:18 AM
09-26-2005 03:18 AM
Re: Route probelm
Use ping as follows:
ping -i 192.168.200.24 dest_host/ip
This will "force" the ping out the proper NIC.
man ping for more details.
BTW - traceroute will do the same thing sometimes.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 03:22 AM
09-26-2005 03:22 AM
Re: Route probelm
netstat -in
Thx
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 05:38 PM
09-26-2005 05:38 PM
Re: Route probelm
first thing you have to ensure your routing table using "netstat -r" inspect this table carefully and see if it contains any entries for the network you want to reach, see what interface this entry is using (lan0 or lan1) in the interface colomn
Also check you default routing entry named "default", you should have only one default entry that uses the interface lan0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:12 PM
09-26-2005 06:12 PM
Re: Route probelm
please see belwo o/p of netstat & traceroot to destination which usages lan1 instead of lan0 ,but if i down LAN1 then traceroute uses LAN0 & then it can reach to destination IP.
Please advice many thanks in advance.
# netstat -rn
Routing tables
Destination Gateway Flags Refs interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.199.2 192.168.199.2 UH 0 lan1 4136
192.168.200.25 192.168.200.25 UH 0 lan0 4136
192.168.200.4 192.168.200.4 UGH 0 lan0 0
192.168.199.1 192.168.199.1 UGH 0 lan1 0
192.168.200.0 192.168.200.25 U 2 lan0 1500
192.168.199.0 192.168.199.2 U 2 lan1 1500
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.200.4 UG 0 lan0 0
# ifconfig lan0
lan0: flags=1843
inet 192.168.200.25 netmask ffffff00 broadcast 192.168.200.255
ifconfig lan1
lan1: flags=1843
inet 192.168.199.2 netmask ffffff00 broadcast 192.168.199.255
# traceroute 192.10.10.30
traceroute: Warning: Multiple interfaces found; using 192.168.199.2 @ lan1
traceroute to 192.10.10.30 (192.10.10.30), 30 hops max, 40 byte packets
1 * * *
2 * * *
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:28 PM
09-26-2005 06:28 PM
Re: Route probelm
Refer this:
http://sunportal.sunmanagers.org/pipermail/summaries/2002-August/002237.html
Some man page example executiong itself is showing the warning messages of that.
http://bama.ua.edu/cgi-bin/man-cgi?traceroute+1M
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:37 PM
09-26-2005 06:37 PM
Re: Route probelm
but i am not able to ping also to destination IP, also our default gateway is router which will accept requests only from lan0 (we have configured it for security reasons) & also lan1 is not connected to publich switch, its connecetd to private san switch.
please advice if any workaround?
many thanks again for HELP, i will assign points.
Regards
Subhash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:44 PM
09-26-2005 06:44 PM
Re: Route probelm
is it reachable??? hope so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 06:45 PM
09-26-2005 06:45 PM
Re: Route probelm
# route add net 192.10.10.0 192.168.200.4 1
or
# route add host 192.10.10.30 192.168.200.4 1
Try to ping it now.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 07:14 PM
09-26-2005 07:14 PM
Re: Route probelm
thanks for your help, i could traceroute to some other local IP & also can ping to default gateway. but still not able to ping or traceroute to this outside IP, we have done nating in router & it will allow only 192.168.200.25 IP to send trafic out.
please see below o/p of traceroute & netstat.
thanks
# traceroute 192.10.10.30
traceroute: Warning: Multiple interfaces found; using 192.168.199.2 @ lan1
traceroute to 192.10.10.30 (192.10.10.30), 30 hops max, 40 byte packets
1 * * *
#netstat -rn
Routing tables
Destination Gateway Flags Refs Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 lo0 4136
192.168.199.2 192.168.199.2 UH 0 lan1 4136
192.168.200.25 192.168.200.25 UH 0 lan0 4136
192.10.10.30 192.168.200.4 UGH 0 lan0 0
192.168.200.4 192.168.200.4 UGH 0 lan0 0
192.168.199.1 192.168.199.1 UGH 0 lan1 0
192.168.200.0 192.168.200.25 U 2 lan0 1500
192.168.199.0 192.168.199.2 U 2 lan1 1500
192.10.10.0 192.168.200.4 UG 0 lan0 0
127.0.0.0 127.0.0.1 U 0 lo0 0
default 192.168.200.4 UG 0 lan0 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 07:27 PM
09-26-2005 07:27 PM
Re: Route probelm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 07:36 PM
09-26-2005 07:36 PM
Re: Route probelm
thanks for your reply, i also feel that there is no problem in Hp-UX box, funny enough just now i tried FTP & it works with destination server.
i will check with networking guys ,many thanks for your support.
gr8 fotum to learn the stuff.
Regards
Subhash
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 07:36 PM
09-26-2005 07:36 PM
Re: Route probelm
Remove routing entries of all lan1 related things.
192.168.199.2 192.168.199.2 UH 0 lan1 4136
# route del host 192.168.199.2 192.168.199.2 1
192.168.199.1 192.168.199.1 UGH 0 lan1 0
# route del host 192.168.199.2 192.168.199.2 1
192.168.199.0 192.168.199.2 U 2 lan1 1500
# route del net 192.168.199.0 192.168.199.2 0
Note: Login with lan0 ip-address and send prior notice to all who are using lan1 ip.
Try to ping and traceroute now.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 08:48 PM
09-26-2005 08:48 PM
Re: Route probelm
192.168.199.1 192.168.199.1 UGH 0 lan1 0
all others are needed for the server to be able to communicate with others on the "SAN IP network"