Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 10:01:05 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Soren Kristensen <soren@soekris.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: ARP cache problems....
Message-ID:  <20010726100105.A242@cicely20.cicely.de>
In-Reply-To: <3B5F8ADE.E75281E6@soekris.com>; from soren@soekris.com on Wed, Jul 25, 2001 at 08:13:34PM -0700
References:  <3B5F8ADE.E75281E6@soekris.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 25, 2001 at 08:13:34PM -0700, Soren Kristensen wrote:
> Hi,
> 
> I'm trying to do some testing on my boxes with 3 ethernet interface. But
> it seems like that FreeBSD gets very confused. Can somebody please tell
> me what's going and, and preferable, help me out ?
> 
> I basically want to connect those 3 interface to the same hub, and then
> use them all from one win98 computer. I have tried before to give them
> IP's on the same subnet, and then move the cable around, but that gives
> me the same arp error message as below. The funny thing about that is
> that arp seems to ssave it on the disk somewhere, as it remember where
> it saw the MAC address even after reboots.... Anybody know where ??

FreeBSD only saves them in memory.
But there is no reason to put more than one interface on the same hub.
Simply configure one interface with alias entries.

> So I figured I could give put them on different subnet, like this:
> 
> ifconfig_sis0="inet 192.168.1.60 netmask 255.255.255.0"
> ifconfig_sis1="inet 192.168.2.60 netmask 255.255.255.0"
> ifconfig_sis2="inet 192.168.3.60 netmask 255.255.255.0"
> 
> And then I configure my win98 testing machine with the same subnet,
> using aliases on one ethernet interface. (seems to work fine)
> 
> When I ping from the win98 machine, the ping seems to work fine, but I
> get these messages on the FreeBSD box:
> 
> Jul 25 19:56:40 test256m /kernel: arp: 192.168.1.4 is on sis0 but got
> reply from 00:a0:cc:a0:d4:07 on sis1

That's quite normal in your configuration as all interfaces accepts
broadcasted packets.

> When I then try to do a "arp -a", the arp program seems to hang for a
> very long time, until it finally show:

Try arp -an as arp -a tries DNS lookups for the IPs.

> ? (192.168.1.1) at 0:80:ad:81:fc:d4 [ethernet]
> ? (192.168.1.4) at 0:a0:cc:a0:d4:7 [ethernet]
> ? (192.168.2.1) at 0:a0:cc:a0:d4:7 [ethernet]

Are you shure the Winows Bos answers the wuery as it should?
tcpdump output would help.

> The FreeBSD box also hangs for a long time if I try to use the network
> interface, t.ex telnet to it.

Is DNS working?

> Is what I'm trying to do possible at all ? What's the magic trick ?

It is possible but uselless as you never get any improvement from using
serveral interfaces to the same hub.
If you use a switch with Fast Etherchannel capability FreeBSD can get
use of it.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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