Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2004 14:52:52 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Didier WIROTH <didier.wiroth@mcesr.etat.lu>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: what is the prompt command of this rc.conf entry
Message-ID:  <20040128145252.GA42394@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <0HS700551B7Y4X@mail.etat.lu>
References:  <0HS700551B7Y4X@mail.etat.lu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



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