Operating System - HP-UX
1834469 Members
3148 Online
110067 Solutions
New Discussion

How to have 2 gateways configured for the same host

 
Faizer Jameel
Frequent Advisor

How to have 2 gateways configured for the same host

Dear Gurus
I want to have 2 permanent gateways for my host. How do I do it.
Thankyou in advance
Faizer
4 REPLIES 4
Robert-Jan Goossens
Honored Contributor

Re: How to have 2 gateways configured for the same host

H Faizer,

To add an additional permanent route entry:

1. Add the route entry in /etc/rc.config.d/netconf
below the default route. Choose either a net or
host route.
ROUTE_DESTINATION[1]="net ip_address" (ex:"net 192.10.1.0" network)
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]=ip_address (ex: 192.10.1.1 router)
ROUTE_COUNT[1]=1
ROUTE_ARGS[1]=""

2. reboot for changes to take effect

3. netstat -rn shows permanent entry

Regards,
Robert-Jan
Faizer Jameel
Frequent Advisor

Re: How to have 2 gateways configured for the same host

would the entry look like this
ROUTE_DESTINATION ="net 192.10.10.0" network
or ROUTE_DESTINATION= 192.10.10.0
Please update as I do not understand this.
Also could you let me know where I could find a write up for configuring gateways etec...
best regards
Faizer Jameel
Michael Schulte zur Sur
Honored Contributor

Re: How to have 2 gateways configured for the same host

Hi,

that would be ROUTE_DESTINATION ="net 192.10.10.0"

greetings,

Michael
Muthukumar_5
Honored Contributor

Re: How to have 2 gateways configured for the same host

Permanent can be made with /etc/rc.config.d/netconf file. To make two gateway entries to one host the,

One for that default / individual ip-address gateway
One for that ip-address network gateway

Suppose , 192.168.151.190 ip-address then,
192.168.151.190 .....
192.168.151.0 .....

To check success of usage then, try to check with traceroute command.

Note: Routing will be followed in-order on netstat -rn output.. ( top -- down )
Easy to suggest when don't know about the problem!