From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 12:36:58 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 58854106569B for ; Thu, 9 Oct 2008 12:36:58 +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 00AD48FC19 for ; Thu, 9 Oct 2008 12:36:57 +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 m99Catjr038339; Thu, 9 Oct 2008 07:36:56 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20081009073538.02524488@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 09 Oct 2008 07:36:49 -0500 To: Konrad Heuer , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <20081009131623.M34013@gwdu60.gwdg.de> References: <20081009131623.M34013@gwdu60.gwdg.de> Mime-Version: 1.0 X-Antivirus: avast! (VPS 081008-1, 10/08/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.94-exp/8398/Wed Oct 8 22:58:03 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m99Catjr038339 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: Multiple NICs routing question 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, 09 Oct 2008 12:36:58 -0000 At 06:26 AM 10/9/2008, Konrad Heuer wrote: >Hello, > >I've a server box with four NICs addressing different subnets: > >NIC1: one class c subnet of same class b network >NIC2: another class c subnet of same class b network >NIC3: local unrouted network >NIC4: local unrouted network > >In the current configuration I use a default gateway (and no routing >daemon) in the subnet addressed by NIC1. Now of course, if a client in an >arbitrary different class c subnet contacts the server using the ip >address of NIC2, it gets a reply from NIC1. > >How can I cange this? I'd like the server to answer via the interface the >client uses when connecting. > >Maybe that's a silly question, but thanks for any reply! > >Best regards > >Konrad Heuer >GWDG, Am Fassberg, 37077 Goettingen, Germany, kheuer2@gwdg.de You can have only one default gateway, that should be to where all other traffic should go. Add static routes to your specific subnets, public or private for the routing of that traffic. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.