Operating System - HP-UX
1834790 Members
2617 Online
110070 Solutions
New Discussion

Re: Which file to update for changes in Gateway m/c IP address

 
SOLVED
Go to solution
Ezhilarasan
Occasional Advisor

Which file to update for changes in Gateway m/c IP address

Hi,

Which file to update for changes in Gateway m/c IP address. Network team informed that
they changed the Gateway ( or DNS ) m/c IP address. After this, we are not able to connect
to remote link database saying unable to reach
destination.
So which configuration file we have to update
for change of Gateway m/c IP address.

Thanks
R.Ezhil
3 REPLIES 3
Stefan Farrelly
Honored Contributor

Re: Which file to update for changes in Gateway m/c IP address

The gateway ip address is specified in /etc/rc.config.d/netconf

ROUTE_GATEWAY[0]=
Im from Palmerston North, New Zealand, but somehow ended up in London...
Robert-Jan Goossens
Honored Contributor
Solution

Re: Which file to update for changes in Gateway m/c IP address

Hi,

You can use

# set_parms addl_netwrk

To change these setting, or edit the

# more /etc/rc.config.d/netconf


Hope it helps,

Robert-Jan.
Ravi_8
Honored Contributor

Re: Which file to update for changes in Gateway m/c IP address

Hi,

edit /etc/rc.config.d/netconf file

ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="x.x.x.x"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""

x.x.x.x is the new gateway IP

oe else
#set_parms addl_netwrk

will also do.

however m/c doesn't require reboot if you stop and start the n/w (/sbin/init.d/net stop/start) in the first case, where as in second case (set_parms) needs a reboot.
never give up