From owner-freebsd-questions Sun Oct 10 11:55:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from granite.sentex.net (granite.sentex.ca [199.212.134.1]) by hub.freebsd.org (Postfix) with ESMTP id 9BD4F1560F for ; Sun, 10 Oct 1999 11:55:24 -0700 (PDT) (envelope-from mike@sentex.net) Received: from ospf-mdt.sentex.net (ospf-mdt.sentex.net [205.211.164.81]) by granite.sentex.net (8.8.8/8.6.9) with SMTP id OAA13858; Sun, 10 Oct 1999 14:55:19 -0400 (EDT) From: mike@sentex.net (Mike Tancsa) To: a.genkin@utoronto.ca (Arcady Genkin) Cc: questions@freebsd.org Subject: Re: Specifying default route Date: Sun, 10 Oct 1999 18:55:18 GMT Message-ID: <3800e07d.315946617@mail.sentex.net> References: In-Reply-To: X-Mailer: Forte Agent .99e/32.227 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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