Changing Default Router?

Jez Hancock jez.hancock at munk.nu
Sat Dec 13 15:54:26 PST 2003


On Sat, Dec 13, 2003 at 06:41:16PM -0500, Dragoncrest wrote:
> 	HI all.  How do I change the default router (aka gateway) in freebsd 
> without rebooting?  I know I can change the IP, subnet mask, and broadcast 
> address through ifconfig, but I couldn't find in there where I could change 
> the default router.  Anyone know?  Thanks.
I believe you can issue:

route add default <ip>

The code in /etc/rc.network is a little obfuscated :P

-- 
Jez Hancock
 - System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/


More information about the freebsd-questions mailing list