From owner-freebsd-questions Sat Jan 22 12:56:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 59F6E14CBE for ; Sat, 22 Jan 2000 12:56:31 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id QAA04712; Sat, 22 Jan 2000 16:00:41 -0500 (EST) (envelope-from cjc) Date: Sat, 22 Jan 2000 16:00:40 -0500 From: "Crist J. Clark" To: Matt Gostick Cc: questions@FreeBSD.ORG Subject: Re: ARP messages w/ two net cards Message-ID: <20000122160040.C3951@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from matt@crazylogic.net on Sat, Jan 22, 2000 at 11:09:13AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jan 22, 2000 at 11:09:13AM -0500, Matt Gostick wrote: > I successfully installed FreeBSD 3-4 last night on my main > computer ... (completly getting rid of MS-DOS (win98) for good in my > house). I'm very impressed with the install. My two network cards were > detected and worked correctly right from the start. Although I keep > getting these wierd messages in my log file. > > $ uname -a > FreeBSD king.fake.net 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Tue Dec 28 > 22:18:05 GMT 1999 jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC > i386 > > $ more /etc/hosts > 127.0.0.1 localhost localhost.my.domain > 192.168.0.3 king king.fake.net > 192.168.0.4 king king.fake.net > > $ifconfig -a > ed1: flags=8843 mtu 1500 > inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255 > ether 00:00:b4:98:22:38 > le0: flags=8843 mtu 1500 > inet 192.168.0.4 netmask 0xffffff00 broadcast 192.168.0.255 > ether 00:00:f8:51:62:61 > lo0: flags=8049 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 > > > When I ping 192.168.0.4 from this box I get: > Jan 22 00:05:05 king /kernel: arp: 192.168.0.3 is on lo0 but got / > reply from 00:00:b4:98:22:38 on le0 > > When I ssh'd into 192.168.0.3 from 192.168.0.1 I get: > Jan 22 10:41:52 king /kernel: arp: 192.168.0.1 is on ed1 but got / > reply from 00:c0:df:ac:87:e7 on le0 > > When I ssh'd into 192.168.0.4 from 192.168.0.1 I get: > Jan 22 11:04:47 king /kernel: arp: 192.168.0.1 is on ed1 but got / > reply from 00:c0:df:ac:87:e7 on le0 > > Just wondering if this is normal... it's my first time with two network > cards in a FreeBSD box. Looks like you have two problems here. 1) You seem to have two NICs on the same logical network. 2) You seem to have two NICs on the same physical network. Problem (1) is clear from the ifconfig(8) output. The entries you have should be confusing the heck out of your computer. When you ssh to 192.168.0.1, how is the computer to decide which interface to use? According to your ifconfig output, _both_ interfaces connect to that address. Which is it to use? Given problem (1) and seeing the error messages you get, I am willing to bet you have both NICs on one wire. The short answer to that is, don't do that. Two NICs from one host on the same wire will only reduce your network performance, and as those error messages show, it confuses some of the kernel's networking. What you probably should have is one NIC on the network and have the second IP aliased to it. From the command line, # ifconfig le0 inet 192.168.0.3 # ifconfig le0 inet 192.168.0.4 netmask 0xffffffff And in rc.conf, ifconfig_le0="inet 192.168.0.3" ifconfig_le0_alias0="inet 192.168.0.4 netmask 0xffffffff" -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message