From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 17:31:28 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFD021065680 for ; Wed, 10 Sep 2008 17:31:28 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id A3B0B8FC14 for ; Wed, 10 Sep 2008 17:31:28 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 9CAD8EBC09; Wed, 10 Sep 2008 13:31:26 -0400 (EDT) Date: Wed, 10 Sep 2008 13:31:23 -0400 From: Bill Moran To: "The Noob" Message-Id: <20080910133123.5dcdfdb4.wmoran@potentialtech.com> In-Reply-To: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com> References: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Configure 2 gateways on a freebsd box for 2 interfaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2008 17:31:29 -0000 In response to "The Noob" : > Hello all, > > I have a small question. > I have two interface in two vlans. > The first interface 192.168.0.1 255.255.255.0 > The second interface: 10.228.44.1 255.255.255.0 > The gateway for the first interface must be 192.168.0.254 and the second > interface must be 10.228.44.254 > How can I configure them? In rc.conf we have just defaultrouter but we can't > specify the interface. I'm curious as to why you would want to do this, since that will affect the answer. If those interfaces lead to different networks, then you should add static routes as appropriate. If they are alternate routes, then you should probably run something like RIP to automatically update the routing table. -- Bill Moran http://www.potentialtech.com