From owner-freebsd-stable Wed Jul 29 18:40:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA14698 for freebsd-stable-outgoing; Wed, 29 Jul 1998 17:39:14 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from pop.uniserve.com (pop.uniserve.com [204.244.156.3]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA14683 for ; Wed, 29 Jul 1998 17:38:54 -0700 (PDT) (envelope-from tom@uniserve.com) Received: from shell.uniserve.ca [204.244.186.218] by pop.uniserve.com with smtp (Exim 1.82 #4) id 0z1gjS-0002nm-00; Wed, 29 Jul 1998 17:38:10 -0700 Date: Wed, 29 Jul 1998 17:38:07 -0700 (PDT) From: Tom X-Sender: tom@shell.uniserve.ca To: Jeff Kletsky cc: Phil Allsopp , freebsd-stable@FreeBSD.ORG Subject: Re: twin network cards in one PC In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >When I put two network cards in one Pc and both cards are on the same > >subnet ie. 194.159.112.3 and > >194.159.112.4 > > > >I can not ping one of the cards wheras if I have one of the cards set to > >192.168.1.1 > > > >I can ping them both. > > > >Why is this ? > > Try looking at your firewall configuration (pointed to in /etc/rc.conf) to > make sure that the addresses both permit the proper flow of packets. Stock > FreeBSD configurations only expect one IP address. No, it much simpler. You can't have two interfaces within the same network. Why? Think about routing. If you have 10.0.0.1/24 on one interface, and 10.0.0.2/24 on another interface, to which interface does traffic destined for 10.0.0.0/10 go out from? Once you configure the first interface, you will get an implied route for network 10.0.0.0/0 out via the first interface. When configuring the second interface, the implied route is either overwritten or ignored (I don't remember, which but I think it is ignored with an error). Basically, the route table can only have one route for a particular network. Someone is working on load balancing code. This code will allow multiple routes to a particular network, and will balance traffic among them. Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message