- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Identical routes, different metrics
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
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
04-22-2002 03:35 AM
04-22-2002 03:35 AM
Identical routes, different metrics
I have a HP-UX 11 server working as a firewall and it has 3 lan cards connected in 3 differents nets.
I can reach one destination network through two differents paths, i.e:
Result of the netstat -rnv (the interesting piece):
131.1.1.0/255.255.255.0
172.1.1.1 UG 0 0 lan1 1500
131.1.1.0/255.255.255.0
192.1.1.1 UG 0 0 lan0 1500
The first route has metric 5
The second one has metric 1
OK, when I disconnect de ethernet cable from the gateway 192.1.1.1, all the traffic to that network (131.1.1.0) flow throug my lan1, but when I reconnect the cable, the traffic is still over my lan1.
Should the traffic turns to the route with lower metric? If yes, what could be wrong?
Thanks in advance and sorry about my poor english...
Rafael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 05:12 AM
04-22-2002 05:12 AM
Re: Identical routes, different metrics
Your english is fine!
Tell me, how are the two different routers, 172.1.1.1 and 192.1.1.1, getting traffic back to the originators, say if 172.1.1.1 is inaccessable?
Are you "pinning" traffic to a gateway?
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 06:09 AM
04-22-2002 06:09 AM
Re: Identical routes, different metrics
But when the 192.1.1.1 is alive again, the packets are forward through him only if I delete de route that points to 172.1.1.1.
I would like that this changes were automatically...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 12:26 PM
04-22-2002 12:26 PM
Re: Identical routes, different metrics
If I theorise with my (v. sketchy) knowldege of routing here's what I think is happening...
1. The first route has the lower metric, so is always used in pereference to the second...
2. The first router fails, so that route has its route metric increased (or the route is deleted???)
3. Al traffic is now routed through the second router.
4. The first router comes back online, but there's nothing to tell the HP server that this has occurred... If they were both on the same network the second router might start sending out ICMP redirects to send traffic back to the first router, but they're not... If the server itself were a router it would recieve router updates (such as RIP broadcasts/multicasts) which would tell it to start using the route again.
But I don't think there's anything in the standard router alogorithm which checks if routers come back up if there is an alternative route - I know I have had issues where I had two default gateways defined - when the first gateway failed traffic moved to the second, but to get traffic to go back to the first I had to delete the second gateway and then recreate it.
SO....
I'd consider running gated in a passive mode where the server listens for RIP broadcasts and updates its router table accordingly - but be careful how you set up gated, or you could end up routing yourself - definately something to try out in your sanbox first if you have one.
Of course I could me way off the mark with this anyway... I'd be happy for someone to put me straight.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 12:53 PM
04-22-2002 12:53 PM
Re: Identical routes, different metrics
I suspect you'll have to setup the routers & your host for Router Discovery Protocol (RDP).
This protocol allows routers to "announce" their availibilty for certain routes.
This will involve changes to your gated.conf & possibly to the routers themselves.
See the following URL for further info:
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/65-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/65-toc.html&searchterms=gated&queryid=20020422-134857
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2002 01:04 PM
04-22-2002 01:04 PM
Re: Identical routes, different metrics
Try your disconnect of the 0 metric link. Do a traceroute to a distant destination to verify that the new route is being used. Now reconnect and repeat the traceroute to show that it still uses the backup route. Now do
arp -c
which should clear the arp table and try the traceroute again. I suspect it will now go the 0 metric route.
ndd has a setting: arp_cleanup_interval
which sets the timeout period which defaults to 300000 msec or 5 minutes. If no traffic passes through for five minutes then it should drop the entry from the arp cache and the next time it should try to use the better route.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 07:43 AM
04-23-2002 07:43 AM
Re: Identical routes, different metrics
There are a couple of issues left unsaid. I'm guessing that rip is being used between the routers instead of ospf. I am also guessing that the system is not using any type of dynamic routing, and the metrics are set at the router level instead of at the system level.
I don't believe that arp or the arp cache would come into play here as the IP level knows that the system is not connected to the 131 network. Just the system routing table would be used.
Since I don't know the exact way this was tested, I would have to guess that dead gateway detection has been invoked, and the 192 router has been marked dead. Once a gateway is marked dead, I don't believe that there is any checking in the network stack to verify if the gateway is still down.
A better check of the routing tables is in order. Instead of netstat use:
ndd /dev/ip -g ip_ire_hash
This should display the ip routing table in memory, with the bottom of the list reporting dead gateways.
If there is an entry in the dead list for the 192 router, a route delete/add should throw the traffic back to the 192 router.
If you are looking for an automatic update of the routing table, you would need to look at gated.
Regards,