Date: Sun, 10 Oct 1999 18:55:18 GMT From: mike@sentex.net (Mike Tancsa) To: a.genkin@utoronto.ca (Arcady Genkin) Cc: questions@freebsd.org Subject: Re: Specifying default route Message-ID: <3800e07d.315946617@mail.sentex.net> In-Reply-To: <MAIL87905bg29a.fsf@main.wgaf.net> References: <MAIL87905bg29a.fsf@main.wgaf.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10 Oct 1999 01:36:12 -0400, in sentex.lists.freebsd.questions you wrote: >Hi all: > >What's the correct way of specifying default route, if a machine has 2 >nics? I imagine there should be something like > >default_route="ed1" > >to be inserted into /etc/rc.conf, but I couldn't find alike option in >rc.conf's man page. The option is e.g. ### Network routing options: ### defaultrouter="NO" # Set to default gateway (or NO). or ### Network routing options: ### defaultrouter="192.168.1.1" # Set to default gateway (or NO). That assumed that one of your interfaces is on the same subnet as 192.168.1.1 is. e.g if you had 2 interfaces, ed0 being 192.168.1.2 ed1 being 10.10.10.1 and you wanted everyting to go out ed0, defaultrouter="192.168.1.1" # Set to default gateway (or NO). is the entry you want. ---Mike Mike Tancsa (mdtancsa@sentex.net) Sentex Communications Corp, Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers could setup a national IP network." (KDW2) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3800e07d.315946617>