1844251 Members
2943 Online
110230 Solutions
New Discussion

Re: default route

 
kannan_2
Occasional Contributor

default route

i have a hp9000/d class server with 4 ethernet cards installed in the machine which runs hpux10.20(for firewall-1)

ethernet 1-internal network
ethernet 2-DMZ
ethernet 3-isp1
ethernet 4-isp2

How to provide multiple default (gateway)route in hp/ux10.20?
do i really have to add in netconf file?




4 REPLIES 4
Andreas Voss
Honored Contributor

Re: default route

Hi,

you can manually add default routes:
route add default 0
for each lan card.
But this routes are NOT permanent , they go away if you reboot the machine.
So you have to add /etc/rc.config.d/netconf
and add your routes there:
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=
ROUTE_COUNT[0]=""
ROUTE_ARGS[0]=""

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

and so on.

Regards

Andrew
kannan_2
Occasional Contributor

Re: default route

thanks for the information,but i received a
info from hp professional that the MULTIPLE
DEFAULT GATEWAY are not supported in 10.20.

is it true?
RikTytgat
Honored Contributor

Re: default route

Hi,

Actually, I don't see the use in having multiple default routes. I don't know the algorithm of the IP routing, but it probably is one of
- use first default route encountered
- use all default routes in turn

So where would the advantage be?

In the first case, the same route would always be used.
In the second case, 1 packet would use default route 1, while the next would use default route 2.

Neither seems to be better than having only 1 default route.

The default route serves as a means to route packets if all other routes fail, so 1 of them should suffice.

Bye,
Rik.
Vladislav Demidov
Honored Contributor

Re: default route

Hi,

This is text from HP-UX 10.20 "man routing" command;
There may still be multiple routing entries remaining. In that case the IP packet is routed over the first entry displayed by netstat -r.
Such multiple routes include:
+ Two or more routes to a host via ifferent
gateways.
+ Two or more routes to a network via
different gateways.
+ Two default routes.

You can specify several default routes but HP-UX alway use only the first one.