From owner-freebsd-questions@FreeBSD.ORG Thu Sep 11 00:25:10 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 5DB681065672 for ; Thu, 11 Sep 2008 00:25:10 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id E64B48FC1C for ; Thu, 11 Sep 2008 00:25:09 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m8B0OxDu025964; Wed, 10 Sep 2008 19:25:00 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080910192254.0266f648@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 10 Sep 2008 19:24:44 -0500 To: "The Noob" , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.co m> References: <9263743c0809101005w5e45edb9g990eeb26b47bbb6b@mail.gmail.com> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080910-0, 09/10/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93.3/8212/Wed Sep 10 15:19:49 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m8B0OxDu025964 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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: Thu, 11 Sep 2008 00:25:10 -0000 At 12:05 PM 9/10/2008, The Noob wrote: >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. >Thanks for your help >Best Regads >TheNoob You can only have one default gateway by definition. You will need a static route to pass traffic from interface/subnet to the other. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.