Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jan 2000 16:00:40 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Matt Gostick <matt@crazylogic.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: ARP messages w/ two net cards
Message-ID:  <20000122160040.C3951@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <Pine.BSF.4.10.10001221035590.58313-100000@thunk.crazylogic.net>; from matt@crazylogic.net on Sat, Jan 22, 2000 at 11:09:13AM -0500
References:  <Pine.BSF.4.10.10001221035590.58313-100000@thunk.crazylogic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255
>         ether 00:00:b4:98:22:38 
> le0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         inet 192.168.0.4 netmask 0xffffff00 broadcast 192.168.0.255
>         ether 00:00:f8:51:62:61 
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
>         inet 127.0.0.1 netmask 0xff000000 
> <with some snips... until I recomile my own kernel>
> 
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000122160040.C3951>