Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX force to use one default

tmartiro
Occasional Contributor

HP-UX force to use one default

hello

I have configured two default gateways on the hp-ux. ip_strong_model is set to 1. The packets which are initialized from the server are using the gateways randomly. How to force hp-ux to use only one gateway.

1 REPLY
Laurent Menase
Honored Contributor

Re: HP-UX force to use one default

Hi
you need to use source routing option

when defining your routes
ie
route add net 10.1.0.0 netmask 255.255.0.0 10.0.0.1 source 10.0.0.2
route add default 10.0.1.1 source 10.0.1.2
route add default 10.0.2.1 source 10.0.2.2



BUT for client side or on udp if you want the system to use one or the other default gateway then you must bind to the right local address.

For server side, the answer will go out respectively to the address which was used by the remote server.