Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

/etc/defaultrouter change without reboot

Status
Not open for further replies.

gfunk123

IS-IT--Management
May 22, 2001
143
GB
Hi

I have had to change the defaultrouter of a production server. I have ammended /etc/defaultrouter to point to the new address but when I do a netstat -rn , it hasnt updated. Is there anyway I can apply this change without rebooting the system ??

regards
 
route add default <machine name>

as root :)
 
You can try,

#route add default <router ip address>
 
You can also use,

#route add default <router ip address>
 
you could even:
Code:
route add default `cat /etc/defaultrouter`

where ` is the back tick below the escape key.
 
route add default <defaultrouter> 1

I have experienced that in my case without the 1 (nos of hops) its doesn't work.
 
works for me without it :)

matters whether you have more than 1 default router i guess ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top