Operating System - HP-UX
1833784 Members
3578 Online
110063 Solutions
New Discussion

Re: default gateway problem

 
SOLVED
Go to solution
Don Spare
Regular Advisor

default gateway problem

Last week I used the 'route add default 10.1.1.200 1' command to add a new default gateway to my servers' routing tables. I then used 'route delete default 10.1.1.1' to remove the old entry. 2 days ago we had a total power outage. When the servers came back up the old default gateway was back.

What happened? Is there a config file somewhere that needs to be updated for this?
7 REPLIES 7
Darrell Allen
Honored Contributor

Re: default gateway problem

Hi Don,

Yes, you need to modify /etc/rc.config.d/netconf. Make a "stanza" for the default route similar to:

ROUTE_DESTINATION[4]="net default"
ROUTE_MASK[4]=""
ROUTE_GATEWAY[4]=10.1.1.200
ROUTE_COUNT[4]=1
ROUTE_ARGS[4]=""

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Patrick Wallek
Honored Contributor
Solution

Re: default gateway problem

Have a look at the file /etc/rc.config.d/netconf and look for your old default router IP address and then change it to your new router IP address and it will take effect next time you reboot.
Helen French
Honored Contributor

Re: default gateway problem

Hi,

Edit the file /etc/rc.config.d/netconf. You will get descriptions for each arguments in that file itself. Edit route defenitions and change it to new address for a permanent change.

HTH,
Shiju
Life is a promise, fulfill it!
Uday_S_Ankolekar
Honored Contributor

Re: default gateway problem

Hi,

You need to add this entry in /etc/rc.config.d/netconf file.
This will maintain default gateway even after reboot.

-USA..

Good Luck..
Uday_S_Ankolekar
Honored Contributor

Re: default gateway problem

Hi,
File is /etc/rc.config.d/netconf

The entry looks like this..

To set the default gateway, you will need to edit the following:

/etc/rc.config.d/netconf

ROUTER_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="15.XX.XXX.1"
ROUTE_COUNT[0]="0"
ROUTE_ARGS[0]=""
Good Luck..
harry d brown jr
Honored Contributor

Re: default gateway problem

Don,

As Darrell and Pat have shown, any commands like "route ..." are temporary.

To have the changes have to be put into /etc/rc.config.d/netconf .

Also, when making these changes, its a good time to do a make_recovery.


live free or die
harry
Live Free or Die
Don Spare
Regular Advisor

Re: default gateway problem

Thank you all for your rapid responses. I have made the edits suggested and will also act on Harry's suggestion to make a new recovery tape.

Thanks.