Date: Sun, 14 Dec 2003 10:24:31 +1030 From: Malcolm Kay <malcolm.kay@internode.on.net> To: Dragoncrest <dragoncrest@voyager.net>, freebsd-questions@freebsd.org Subject: Re: Changing Default Router? Message-ID: <200312141024.31312.malcolm.kay@internode.on.net> 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 Sun, 14 Dec 2003 10:11, 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 broadc= ast > address through ifconfig, but I couldn't find in there where I could ch= ange > the default router. Anyone know? Thanks. > The relevant command is 'route'. Take a look at route(8). I think you want: route change default <gateway-address> Or from scratch route add default <gateway-address> Malcolm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200312141024.31312.malcolm.kay>