1827819 Members
2107 Online
109969 Solutions
New Discussion

Multiple Gateway IP's

 
Gear Fisher
New Member

Multiple Gateway IP's

How can I add multiple gateways to HP-UX 10.2? Obviously I can add a single default gateway, but would like to enter a secondary "failover" gateway should the first have a problem.. please help...

Thanks!
5 REPLIES 5
Berlene Herren
Honored Contributor

Re: Multiple Gateway IP's

This will not work on 10.20, but will at 11.0. On 11.0, in your /etc/rc.config.d/netconf, you would have multiple instances of routes like so

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="10.44.176.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="12.56.154.1"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""


Berlene


http://www.mindspring.com/~bkherren/dobes/index.htm
rick jones
Honored Contributor

Re: Multiple Gateway IP's

If your routers support it, you migth consider running the router discovery protocol daemon. It will pick the "best" default route to use at any given point in time. I beleive that you can edit onr of th econfig files in /etc/rc.config.d/ to enable the daemon.
there is no rest for the wicked yet the virtuous have no pillows
Mark van Hassel
Respected Contributor

Re: Multiple Gateway IP's

Hello,

The router discovery protocol daemon (rdpd) is obsolete in HPUX-11 says the rdpd man page.
My question is: when multiple deafult gateway are configured, is there a way to set a priority for the gateways. For instance, use gateway A first and when that one fails, use gateway B ?
I ask this because we have configured two default gateways on different subnets of which one is not meant for 'user' traffic, so we want to have the other gateway as primary.

Thanks in Advance,

Mark
The surest sign that life exists elsewhere in the universe is that none of it has tried to contact us
Steve White_1
Occasional Advisor

Re: Multiple Gateway IP's

Enabling GATED will let the machine select a different gateway is one is down. I do not know how to select primary and secondary roles.
Berlene Herren
Honored Contributor

Re: Multiple Gateway IP's

By default, 11.0 will try another default gateway if the other is down.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm