Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2003 23:54:23 +0000
From:      Jez Hancock <jez.hancock@munk.nu>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Changing Default Router?
Message-ID:  <20031213235423.GA46070@users.munk.nu>
In-Reply-To: <5.2.0.9.2.20031213183836.02207d90@pop.voyager.net>
References:  <5.2.0.9.2.20031213183836.02207d90@pop.voyager.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031213235423.GA46070>