Operating System - HP-UX
1826122 Members
4883 Online
109690 Solutions
New Discussion

Re: replace gateway without reboot???

 
SOLVED
Go to solution
tom quach_1
Super Advisor

replace gateway without reboot???

Dear,

i am using HPUX 11.31
i like to know if it is possible to replace the gateway in /etc/rc.config.d/netconf and re-active it without reboot the server.
if yes, please advise command(s)


Thanks in advance.
Tom
3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: replace gateway without reboot???

For changing the current gateway: use the "route" command.

http://docs.hp.com/en/B2355-60130/route.1M.html

route delete default 1
route add default 1

Note the "1" at the end: for a gateway route, this hop count value must always be at least 1. If you forget to specify it, you will get an error message, as the default hop count value is 0.

For making the change persistent across reboots: edit /etc/rc.config.d/netconf using your favorite editor.

MK
MK
Patrick Wallek
Honored Contributor

Re: replace gateway without reboot???

Also make sure you do this from the console since the lack of a gateway could severely impact your ability to communicate with the server.
tom quach_1
Super Advisor

Re: replace gateway without reboot???

Thanks very much.

Regards,
Tom