From owner-freebsd-net@FreeBSD.ORG Thu Jul 31 11:21:45 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 755A437B401 for ; Thu, 31 Jul 2003 11:21:45 -0700 (PDT) Received: from web10407.mail.yahoo.com (web10407.mail.yahoo.com [216.136.130.99]) by mx1.FreeBSD.org (Postfix) with SMTP id E930F43FB1 for ; Thu, 31 Jul 2003 11:21:44 -0700 (PDT) (envelope-from opolyakov@yahoo.com) Message-ID: <20030731182144.95446.qmail@web10407.mail.yahoo.com> Received: from [67.112.212.200] by web10407.mail.yahoo.com via HTTP; Thu, 31 Jul 2003 11:21:44 PDT Date: Thu, 31 Jul 2003 11:21:44 -0700 (PDT) From: Oleg Polyakov To: bob@starblanket.ca, freebsd-net@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: 'Bryce Edwards' Subject: RE: Multiple Interfaces X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 18:21:45 -0000 --- Bob wrote: > Greets > > > I have two interfaces and the following info in rc.conf. The > > first one is > > setup properly but the second one never gets configured. > > I just went through this process myself. > > The word I have is that FreeBSD cannot run two NICs on > the same subnet, which is what your included config shows. > So try as you may it will not work. I also tested 4.7, 5.0 > and 5.1 with similar results. The trick is to configure second interface with netmask 255.255.255.255. That interface can't be default gateway. But if anything listen to that address than it responds on that address. You may see log messages like this: arp: 10.13.1.2 is on fxp0 but got reply from 00:00:0c:61:2e:c0 on fxp1 To disable it run: sysctl net.link.ether.inet.log_arp_wrong_iface=0 > Here is a snippet of an email I received on this topic: > > Begin > > Well, as long as I can tell, one can't have 2 ifaces on the same subnet > on FreeBSD. This seems to be regarded as a feature by the guys who have > written the code. "It's arguable that it should be done any other way, > since it will put questions like what interface will be used for > outgoing segments to the subnet ? etc. which will require to manually > assign the arp table as log as you have the rest of the nodes of the > subnet connected throu some kind of switches or to still have all > outgoing connections throu a preferred interface which will require a > SRC (IP+MAC) addresses of the other interface and will unnecessary > complicated the hole thing". So the result will be a gain in the speed > of incoming segments but more load on the system. > > END > > >What am I missing? > > All you are missing is the fact FreeBSD cannot handle > two NICs the same subnet. OpenBSD does, NetBSD does and Linux does. That sounds misleading. FreeBSD handles two or more NICS on one subnet. You just can't configure them with same netmask or have them behave identically. Only one can be default gateway. > Regards > > Bob D > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com