From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 02:18:48 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 692221065694 for ; Fri, 10 Oct 2008 02:18:48 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id C8E998FC15 for ; Fri, 10 Oct 2008 02:18:47 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.13.1) with ESMTP id m9A2IXbt078399 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 10 Oct 2008 09:18:33 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.14.2/8.12.11) id m9A2Ia29057708; Fri, 10 Oct 2008 09:18:36 +0700 (ICT) Date: Fri, 10 Oct 2008 09:18:36 +0700 (ICT) Message-Id: <200810100218.m9A2Ia29057708@banyan.cs.ait.ac.th> From: Olivier Nicole To: derek@computinginnovations.com In-reply-to: <6.0.0.22.2.20081009073538.02524488@mail.computinginnovations.com> (message from Derek Ragona on Thu, 09 Oct 2008 07:36:49 -0500) References: <20081009131623.M34013@gwdu60.gwdg.de> <6.0.0.22.2.20081009073538.02524488@mail.computinginnovations.com> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-questions@freebsd.org 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: Fri, 10 Oct 2008 02:18:48 -0000 >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. You should give more details about your configuration. If any client on the class B on NIC2 can contact your server, you must configure the NIC for the class B. The routing stack will take charge of excluding the class C on NIC1 from the class B on NIC2. It's very bad that the client that connects via the NIC2 has a subnet of class B and that the NIC2 is configured for class C only. If you configure: NIC1 192.168.1.1 255.255.255.0 NIC2 192.168.2.1 255.255.0.0 Client 192.168.127.23 255.255.0.0 it should work. Olivier