From owner-freebsd-questions@FreeBSD.ORG Wed Jan 28 06:53:09 2004 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 6EBB016A4CE for ; Wed, 28 Jan 2004 06:53:09 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id C144D43D45 for ; Wed, 28 Jan 2004 06:53:06 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i0SEqqjc043834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 28 Jan 2004 14:52:52 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i0SEqqmm043833; Wed, 28 Jan 2004 14:52:52 GMT (envelope-from matthew) Date: Wed, 28 Jan 2004 14:52:52 +0000 From: Matthew Seaman To: Didier WIROTH Message-ID: <20040128145252.GA42394@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Didier WIROTH , freebsd-questions@freebsd.org References: <0HS700551B7Y4X@mail.etat.lu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: <0HS700551B7Y4X@mail.etat.lu> User-Agent: Mutt/1.5.5.1i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: what is the prompt command of this rc.conf entry 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: Wed, 28 Jan 2004 14:53:09 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 28, 2004 at 02:09:48PM +0100, Didier WIROTH wrote: > Hi, > Defining the default gateway in rc.conf is: > defaultrouter=3D"10.0.0.10" >=20 > How do you define this from the command prompt, what is the command I wou= ld > have to use to make 10.0.0.10 as my default gateway? You can examine the routing table by: % netstat -r There will be quite a lot of output, especially if you have IPv6 enabled, but the line you want will be pretty clear. See netstat(1) for a bunch of other options. To set the default route do: # route add net default 10.0.0.10 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAF8zEdtESqEQa7a0RAjz/AJ41+3KdBujci4m8O8gICjrfyBlCXQCePwvy m5dwwb3zEBTw2ZPXDg38H80= =6tTs -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ--