From owner-freebsd-questions@FreeBSD.ORG Sat Dec 13 15:54:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CC1716A4CE for ; Sat, 13 Dec 2003 15:54:26 -0800 (PST) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AD1943D32 for ; Sat, 13 Dec 2003 15:54:25 -0800 (PST) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD) id 1AVJaZ-000DEY-Oz for freebsd-questions@FreeBSD.ORG; Sat, 13 Dec 2003 23:54:23 +0000 Date: Sat, 13 Dec 2003 23:54:23 +0000 From: Jez Hancock To: freebsd-questions@FreeBSD.ORG Message-ID: <20031213235423.GA46070@users.munk.nu> Mail-Followup-To: freebsd-questions@FreeBSD.ORG References: <5.2.0.9.2.20031213183836.02207d90@pop.voyager.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.2.20031213183836.02207d90@pop.voyager.net> User-Agent: Mutt/1.4.1i Subject: Re: Changing Default Router? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2003 23:54:26 -0000 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 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/