HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: two default routes
Operating System - HP-UX
1833744
Members
2557
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
05-10-2002 08:52 PM
05-10-2002 08:52 PM
hi,
I have put two default routes pointing to two different gateways on the same network. will this work as a router fallback setup ? ie if
first route is not available , the second will be tried .
regards,
U.SivaKumar
I have put two default routes pointing to two different gateways on the same network. will this work as a router fallback setup ? ie if
first route is not available , the second will be tried .
regards,
U.SivaKumar
Innovations are made when conventions are broken
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-10-2002 09:56 PM
05-10-2002 09:56 PM
Re: two default routes
Hi
this thread will tell you all about this.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x775f46ff9277d511abcd0090277a778c,00.html
good luck
John.
this thread will tell you all about this.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x775f46ff9277d511abcd0090277a778c,00.html
good luck
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 02:56 AM
05-12-2002 02:56 AM
Solution
Hello,
I think this is possible, but it may not be the ndd tunable parameter referred to in the forum message above - If you have two default gateways, and have dead gateway detection turned on (Think it's 'ip_ire_gw_probe') under HP-UX 11.x, the default route will 'failover' to the second default route. Dead gateway detection tends to ping the default route at certain intervals to see if it's still alive, so some people turn it off if their gateway is a firewall. So, if your gateways aren't firewalls, this might work. However, I think the probing interval is something like 15 minutes by default. It can be adjusted by another ndd tunable (maybe 'ip_ire_gw_probe_interval').
Another possibility would be to use HSRP on your routers, but it's not something I know much about...
Hope this helps,
cxtwo
I think this is possible, but it may not be the ndd tunable parameter referred to in the forum message above - If you have two default gateways, and have dead gateway detection turned on (Think it's 'ip_ire_gw_probe') under HP-UX 11.x, the default route will 'failover' to the second default route. Dead gateway detection tends to ping the default route at certain intervals to see if it's still alive, so some people turn it off if their gateway is a firewall. So, if your gateways aren't firewalls, this might work. However, I think the probing interval is something like 15 minutes by default. It can be adjusted by another ndd tunable (maybe 'ip_ire_gw_probe_interval').
Another possibility would be to use HSRP on your routers, but it's not something I know much about...
Hope this helps,
cxtwo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2002 05:28 PM
05-12-2002 05:28 PM
Re: two default routes
Hi,
It should be better for you to rely on a routing protocol than static default routes for failover and fallback.
If you wish to use static default routes, then use it in a cron script so that you take care of fallback from the standby route to the primary route.
In my environment, I use RDPD (Router Discovery Protocol Daemon) clients on my HP-UX servers.
On both my firewall gateways, I run GATED which launches the routerdiscovery server. With that, I am able to implement failover and fallback.
If you use a cron script that runs every minute, it should go something like this:
=======================================
#!/sbin/sh
if ping primary -n 1 | grep '100%' >/dev/null 2>&1
then
if [ ! -e /tmp/FAILED-OVER]
then
route add default secondary
route delete default primary
touch /tmp/FAILED-OVER
fi
else
if [ -e /tmp/FAILED-OVER ]
then
route add default primary
route delete default secondary
rm -f /tmp/FAILED-OVER
fi
fi
=======================================
Hope this helps. Regards.
Steven Sim Kok Leong
It should be better for you to rely on a routing protocol than static default routes for failover and fallback.
If you wish to use static default routes, then use it in a cron script so that you take care of fallback from the standby route to the primary route.
In my environment, I use RDPD (Router Discovery Protocol Daemon) clients on my HP-UX servers.
On both my firewall gateways, I run GATED which launches the routerdiscovery server. With that, I am able to implement failover and fallback.
If you use a cron script that runs every minute, it should go something like this:
=======================================
#!/sbin/sh
if ping primary -n 1 | grep '100%' >/dev/null 2>&1
then
if [ ! -e /tmp/FAILED-OVER]
then
route add default secondary
route delete default primary
touch /tmp/FAILED-OVER
fi
else
if [ -e /tmp/FAILED-OVER ]
then
route add default primary
route delete default secondary
rm -f /tmp/FAILED-OVER
fi
fi
=======================================
Hope this helps. Regards.
Steven Sim Kok Leong
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP