HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Alternate/Secondary GW for default/static rout...
Operating System - HP-UX
1836561
Members
3376
Online
110102
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
02-08-2004 01:41 PM
02-08-2004 01:41 PM
Hi,
Is it possible to configure alternate routes for the default gw and also for other configured static routes should the configured gateway or associated interface fails?
Case scenario:
LAN1 IP: A.B.C.1
LAN1 GW IP: A.B.C.254
Destination IP range: Q.W.E.R
LAN2 IP: W.X.Y.1
LAN2 GW IP: W.X.Y.254
Destination IP range: A.S.D.F
What I want to happen is using only static routing, if LAN2 I/F goes down, Destination IP range A.S.D.F will be routed via LAN1 I/F using LAN1 GW IP and vice versa.
Also, I would want to utilize this for the default GW such that if LAN0 I/F of the default GW goes down, all traffic will be routed to an alternate GW on a different LAN I/F.
Thanks in advance!
Is it possible to configure alternate routes for the default gw and also for other configured static routes should the configured gateway or associated interface fails?
Case scenario:
LAN1 IP: A.B.C.1
LAN1 GW IP: A.B.C.254
Destination IP range: Q.W.E.R
LAN2 IP: W.X.Y.1
LAN2 GW IP: W.X.Y.254
Destination IP range: A.S.D.F
What I want to happen is using only static routing, if LAN2 I/F goes down, Destination IP range A.S.D.F will be routed via LAN1 I/F using LAN1 GW IP and vice versa.
Also, I would want to utilize this for the default GW such that if LAN0 I/F of the default GW goes down, all traffic will be routed to an alternate GW on a different LAN I/F.
Thanks in advance!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 03:59 PM
02-08-2004 03:59 PM
Solution
Hi Kenneth,
As far as I know, you can't configure more than one default gateway on the system. So, I would write a script that will do the checking for me.
1. Ping to the gateway. If it is down, then ping the other gateway and if it is up, then do a 'route delete' for the gateway that is down and establish static routing through the other gateway. If the other gateway is also down, then get yourself paged|mailed.
2. Keep track of the the dead gateway and continue pinging it. If it comes up, then delete the route corresponding to it and establish the static route again.
3. I would put the above in a script that starts during the start-up and runs continously but with periodic sleeps. This way you can pass the status of the gateways from one run to other. If it is run through cron, then you will have to create files etc.,
A bit of scripting is involved though.
-Sri
As far as I know, you can't configure more than one default gateway on the system. So, I would write a script that will do the checking for me.
1. Ping to the gateway. If it is down, then ping the other gateway and if it is up, then do a 'route delete' for the gateway that is down and establish static routing through the other gateway. If the other gateway is also down, then get yourself paged|mailed.
2. Keep track of the the dead gateway and continue pinging it. If it comes up, then delete the route corresponding to it and establish the static route again.
3. I would put the above in a script that starts during the start-up and runs continously but with periodic sleeps. This way you can pass the status of the gateways from one run to other. If it is run through cron, then you will have to create files etc.,
A bit of scripting is involved though.
-Sri
You may be disappointed if you fail, but you are doomed if you don't try
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 04:22 PM
02-08-2004 04:22 PM
Re: Alternate/Secondary GW for default/static routes
You get one default gateway with HP-UX.
For everything else you add a route, usualy with a script.
As far as I know thats how it works with Linux too.
SEP
For everything else you add a route, usualy with a script.
As far as I know thats how it works with Linux too.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2004 04:47 PM
02-08-2004 04:47 PM
Re: Alternate/Secondary GW for default/static routes
Thanks guys,
Knew the answer all along. Just wanted to see the point of view of others to confirm my own limited understanding on HP-UX. Will just have to go on scripting to achieve what I want.
The reason I asked this is that at least in a Nokia router that I have handled will all dynamic routing protocols disabled, I can configure secondary or alternate default routes should the primary fail. This router uses IPSO OS which is a some form of hardened version of FreeBSD. I guess that feature on the router is most probably also a script.
Thanks again!
Knew the answer all along. Just wanted to see the point of view of others to confirm my own limited understanding on HP-UX. Will just have to go on scripting to achieve what I want.
The reason I asked this is that at least in a Nokia router that I have handled will all dynamic routing protocols disabled, I can configure secondary or alternate default routes should the primary fail. This router uses IPSO OS which is a some form of hardened version of FreeBSD. I guess that feature on the router is most probably also a script.
Thanks again!
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