From owner-freebsd-questions Thu Aug 15 09:49:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA21765 for questions-outgoing; Thu, 15 Aug 1996 09:49:51 -0700 (PDT) Received: from csd.cs.technion.ac.il (csd.cs.technion.ac.il [132.68.32.8]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA21759 for ; Thu, 15 Aug 1996 09:49:47 -0700 (PDT) Received: (from nadav@localhost) by csd.cs.technion.ac.il (8.6.11/8.6.10) id TAA14766; Thu, 15 Aug 1996 19:49:17 +0300 Date: Thu, 15 Aug 1996 19:49:16 +0300 (IDT) From: Nadav Eiron X-Sender: nadav@csd To: Michael Ryan cc: questions@freebsd.org Subject: Re: Two Ethernet cards in one machine on same IP network In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 14 Aug 1996, Michael Ryan wrote: > I've a system (FreeBSD 2.1R) with two NICs: WD8013 and NE2000. > I want to plug both of them into the same IP network, > on the same cable. No can do!!! I don't have any intimate knowledge of the implementation of IP in FreeBSD, but the first (well, O.K. among the first) thing I learned about IP is that a machine MUST have at most one interface on an IP network. That's part of the reason subnetting was invented! I can't imagine why you'd like two cards on the same ethernet cable, but if you really do, give one of them a netmask of 255.255.255.255. This would cause it to be used just to receive packets for its address (I think it will never transmit. Am I wrong on that???). > > I ifconfig the WD8013 (ed0) first, and it goes fine. > When I ifconfig the NE2000 (ed1), I get an error message > as follows. > > # cat /etc/hosts > 194.9.12.7 h1 > 194.9.12.8 h2 > # ifconfig ed0 inet h1 > # ifconfig ed1 inet h2 > ifconfig: ioctl (SIOCAIFADDR): File exists It's telling you that you already have an interface to that network. > > When I then do "ifconfig ed1" the parameters (IP address, > netmask and broadcast address) are fine, but I can't ping > the IP address (h2), even from the machine itself. The Because the ifconfig failed. > routing table shows that the address (194.9.12.8) is reached > via link#1 -- which is sort of correct, as that's the > interface to the 194.9.12.0 network, but that's not what > I expected (link#1 == ed0). > > Any ideas? > > > Thanks, > Mike > > --- > > > > You're welcome, Nadav