Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Multiple Default Gateways

SOLVED
Go to solution
mr_red
Advisor

Configuring Multiple Default Gateways

Hi all!

 

I have an HP-UX 11iv3 with two network interfaces, each one is connected to a vlan.

 

Let's say:

lan0 - 10.10.70.38 netmask 255.255.255.0

gateway is: 10.10.70.254

and

lan1 - 192.168.7.126 netmask 255.255.255.0

gateway is: 192.168.7.1

 

I've configured gateways via SMH and i double checked the config in /etc/rc.config.d/netconf.

The problem is that the servers respond on just one gateway and not the other.

 

I've googled a bit and I've found that this can be resolved using iproute utility but that's for LINUX systems

(check out this blog, that's exactly the configuration that I need to set up configuring-multiple-default-routes-in-linux ).

 

Can someone tell me the alternative of this iproute2 in HP-UX or explain to how to configure two default gateways on the server each one on a seperate network interface.

 

 

Thanks!

3 REPLIES
Torsten.
Acclaimed Contributor

Re: Configuring Multiple Default Gateways

You probably need some entries like this in your netconf file:

ROUTE_DESTINATION[0]="net 192.6.12.192"
ROUTE_MASK[0]="255.255.255.224"
ROUTE_GATEWAY[0]="192.6.12.130"
ROUTE_COUNT[0]="1"
ROUTE_DESTINATION[1]="net 192.6.12.33"
ROUTE_MASK[1]="255.255.255.240"
ROUTE_GATEWAY[1]="192.6.12.131"
ROUTE_COUNT[1]="1"

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Matti_Kurkela
Honored Contributor
Solution

Re: Configuring Multiple Default Gateways

See pages 10-15 of this excellent document by Olivier S. Massé:

 

http://mayoxide.com/presentations/Understanding_hpux_routing.pdf

 

It describes this common behavior on multi-homed hosts, its root cause and some ways to fix it on HP-UX.

 

If you really need both network interfaces to have world-wide connectivity, you'll probably need the ip_strong_es_model setting described on page 13.

 

But if at least one of your NICs only needs to connect to a small number of network segments, setting up segment-specific route entries (like Torsten suggested) might be appropriate.

 

MK
mr_red
Advisor

Re: Configuring Multiple Default Gateways

Thank you very much Matti. It the document was very helpful and solved my problem.