Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jul 1999 13:55:37 -0500 (CDT)
From:      "Jasper O'Malley" <jooji@webnology.com>
To:        Michel TALON <talon@lpthe.jussieu.fr>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: ARP Problem? Need confirmation...
Message-ID:  <Pine.LNX.4.02.9907051329260.17326-100000@mercury.webnology.com>
In-Reply-To: <199907051318.PAA56824@niobe.lpthe.jussieu.fr>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Jul 1999, Michel TALON wrote:

> Here on my machine running 3.2-STABLE

When did you last run a make world?

> i get the following result:
> 
> su-2.02# arp -s 134.157.10.68 auto pub
> using interface xl0 for proxy with address 0:10:5a:3b:ae:3
> 
> note however that the ethernet adress here obtained is incorrect
> since this is my own mac adress and not that of the printer
> 134.157.10.68  But after all i used auto!

This is the desired behavior when using the "auto" and "pub" parameters.
The machine will then perform proxy ARP for the IP address, responding to
ARP requests for the address with the MAC address of one of its own
network interfaces.

The problem is this:

root@urchin:~ {2} ifconfig ed1
ed1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.54.1 netmask 0xffffff00 broadcast 192.168.54.255
        ether 00:e0:29:32:21:ee

root@urchin:~ {3} arp -a
? (192.168.54.133) at 0:a0:c9:70:4c:1c [ethernet]
? (192.168.54.254) at 0:e0:1e:b9:7d:c1 [ethernet]

root@urchin:~ {4} arp -s 192.168.54.5 auto pub
using interface ed1 for proxy with address 0:e0:29:32:21:ee
arp: writing to routing socket: File exists
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[snip]

192.168.54.5 is an unused IP address on the same IP subnet as
interface ed1 (which has a MAC address of 0:e0:29:32:21:ee). 
What's supposed to happen--and what did in fact happen on this box running
3.2-RELEASE until I cvsupped the latest -STABLE sources and remade the
world--is this:

root@urchin:~ {1} arp -s 192.168.54.5 auto pub
using interface ed1 for proxy with address 0:e0:29:32:21:ee

root@urchin:~ {2} arp -a
? (192.168.54.5) at 0:e0:29:32:21:ee [ethernet] permanent published
? (192.168.54.133) at 0:a0:c9:70:4c:1c [ethernet]
? (192.168.54.254) at 0:e0:1e:b9:7d:c1 [ethernet]

[snip]

The problem is the "arp: writing to routing socket: File exists" error,
which suggests that an ARP entry (or link-level route, actually) for
192.168.54.5 already exists, which it does not:

root@urchin:~ {7} netstat -nr
Routing tables

Internet:
Destination        Gateway            Flags     Refs     Use     Netif Expire
default            192.168.54.254     UGSc        2        0      ed1
127.0.0.1          127.0.0.1          UH          0        4      lo0
192.168.27         link#1             UC          0        0     fxp0
192.168.54         link#2             UC          0        0      ed1
192.168.54.133     0:a0:c9:70:4c:1c   UHLW        1      128      ed1    818
192.168.54.254     0:e0:1e:b9:7d:c1   UHLW        1        0      ed1    818

> It seems that there is no bug here.

It's a bug. It worked fine in 3.2-RELEASE and it broke somewhere along the
way.

Cheers,
Mick

The Reverend Jasper P. O'Malley          dotdot:jooji@webnology.com
    Systems Administrator                  ringring:asktheadmiral
	Webnology, LLC               woowoo:http://www.webnology.com/~jooji



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.02.9907051329260.17326-100000>