1833027 Members
2257 Online
110049 Solutions
New Discussion

Changing the Gatway IP

 
SOLVED
Go to solution
Marty Metras
Super Advisor

Changing the Gatway IP

I have set a new computer and now have to move it to another network.
I can change the IP address of the NIC cards in sam. (HP-UX 11.0)
Where do I change the Gateway IP address?

Can you help?
Marty
The only thing that always remain the same are the changes.
6 REPLIES 6
T G Manikandan
Honored Contributor

Re: Changing the Gatway IP

Hello,
open your /sbin/rc.config.d/netconf file and change it.
Then do a /sbin/init.d/net stop
/sbin/init.d/net start

Else you can do a

setparams addl_netwrk
to configure your gateway.


Also you can use
#route delete net default 1

#route add net default 1

to add the gateway on the run.

Thanks

Patrick Preuss
Trusted Contributor

Re: Changing the Gatway IP

hi marty,

try to use /sbin/set_parms
(ip_address |addl_netwrk)

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

Parm ROUTE_GATEWAY[0]=""

regards
-PP
Goodbye Douglas! Whereever you are now, keep your towel and don't panic.
S.K. Chan
Honored Contributor

Re: Changing the Gatway IP

The cleanest way is to run set_parms like so ..

# set_parms addl_netwrk

and just foloow the instruction on the screen.
T G Manikandan
Honored Contributor

Re: Changing the Gatway IP

sorry

it is
#set_parms addl_netwrk

Thanks
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Changing the Gatway IP

Hi Marty


set_parms addl_netwrk

route add net default a.b.c.d 1 ( to do it on the fly)

Manoj Srivastava
Marty Metras
Super Advisor

Re: Changing the Gatway IP

Thank you all.
Gateway is changed and All is well.
Marty
The only thing that always remain the same are the changes.