Operating System - HP-UX
1834137 Members
2388 Online
110064 Solutions
New Discussion

Adding a second gateway to netconf

 
SOLVED
Go to solution
Cathy Squires
Frequent Advisor

Adding a second gateway to netconf

Hi,

in the /etc/rc.config.d/netconf you set the default gateway on the line that goes
ROUTE_GATEWAY[0]=153.118.219.251

Is there someway to add a second gateway for the system to check if it doesn't find the device/ip on the default gateway??

tks
ecs
2 REPLIES 2
Helen French
Honored Contributor
Solution

Re: Adding a second gateway to netconf

Darrell Allen
Honored Contributor

Re: Adding a second gateway to netconf

Hi Cathy,

I don't fully follow your question. Yes, you can add multiple routes in netconf. Just add a stanza for each route. Note the number inside the [] must be unique for each stanza.

An example:
ROUTE_DESTINATION[0]=default
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]=10.10.10.1
ROUTE_COUNT[0]=1
ROUTE_ARGS[0]=""

ROUTE_DESTINATION[1]="net 12.0.0.0"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="10.10.10.3"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""

So, you can add explicit routes to hosts and nets if you desire. Those routes will be used instead of the default route.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)