On Wed, Jan 28, 2004 at 02:09:48PM +0100, Didier WIROTH wrote:
> Hi,
> Defining the default gateway in rc.conf is:
> defaultrouter="10.0.0.10"
> 
> How do you define this from the command prompt, what is the command I would
> 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

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

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to