From owner-freebsd-questions Wed Oct 3 4:49:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 597A237B401 for ; Wed, 3 Oct 2001 04:49:18 -0700 (PDT) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 4C3202B709; Wed, 3 Oct 2001 13:49:03 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id E7CC62FD; Wed, 3 Oct 2001 21:48:55 +1000 (EST) Date: Wed, 3 Oct 2001 21:48:55 +1000 From: Edwin Groothuis To: Noor Dawod Cc: freebsd-questions@freebsd.org Subject: Re: Question about two NIC's Message-ID: <20011003214855.C559@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Noor Dawod , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from noor@comrax.com on Wed, Oct 03, 2001 at 01:25:10PM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Oct 03, 2001 at 01:25:10PM +0200, Noor Dawod wrote: > Giving a FreeBSD machine that is connected to two different networks > using two NIC's, how can I configure it to use two different > 'defaultrouter' settings in rc.conf? Looking in /etc/defaults/rc.conf, > there's only one place that I can configure the defaultrouter. There is only one default route. You said the machine is connected to two different networks, which indirectly indicates that they have two different IP spaces. Let the routes for the one network point to the gateway for that network, let the routes for the other networking point to the gateway for that network and everything will be working fine. If, by chance, both the gateways have a connection to a global IP space, let the default route point to the one with the fastests link :-) Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message