Operating System - HP-UX
1838576 Members
4147 Online
110128 Solutions
New Discussion

Re: How to change default gateway

 
Mark Brook_3
Advisor

How to change default gateway

Hi

Could somebody give me detailed instructions on how to change the default gateway on our HP Unix version 11.00 system.

Thanks

Mark
2 REPLIES 2
Pete Randall
Outstanding Contributor

Re: How to change default gateway

Mark,

Edit /etc/rc.config.d/netconf. Find the section for Routing and make your changes.

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

Save the file and reboot the machine. That should do it.


Pete

Pete
Fred Ruffet
Honored Contributor

Re: How to change default gateway

for an instant use, you should be using the route command, by deleting then adding a new default route.
route delete default
route add default
(man route for many more options)

To keep this new route at next reboot, you will need to update dettings in /etc/rc.config.d/netconf file. Modifications may be done to lines ROUTE_GATEWAY[0] and ROUTE_MASK[0].

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)