what is the prompt command of this rc.conf entry
Matthew Seaman
m.seaman at infracaninophile.co.uk
Wed Jan 28 06:53:09 PST 2004
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040128/66826e31/attachment-0001.bin
More information about the freebsd-questions
mailing list