net/mpd5: proxy arp don't work on FreeBSD 8
Li, Qing
qing.li at bluecoat.com
Wed Mar 3 02:07:54 UTC 2010
This topic has come up quite a few times. Please search into the ML
archive
(as recent as 2 weeks ago) and read about the details.
>
> I get an ugly error message on current, but at least it setups the
> address:
> [98]chipmunk.cicely.de# arp -an
> ? (10.1.1.9) at 00:1c:c0:94:2c:d7 on vlan0 expires in 1016 seconds
> [vlan]
> ? (10.1.1.38) at 00:0e:42:02:00:42 on vlan0 permanent [vlan]
> ? (10.1.1.4) at 00:0e:42:02:00:21 on vlan0 expires in 1076 seconds
> [vlan]
> ? (10.1.1.16) at 00:1c:c0:30:16:a1 on vlan0 expires in 1195 seconds
> [vlan]
> [99]chipmunk.cicely.de# arp -S 10.1.1.179 0:e:42:2:0:42 pub
> arp: writing to routing socket: Invalid argument
>
The error message is correct. Your current ARP table does not
contain an entry for 10.1.1.179. The "-S" tries to delete that
entry first and cannot find it, so gives the error.
<SNIP>
>
> But with a route added for this IP arp fails completely:
> [104]chipmunk.cicely.de# ifconfig vlan3 10.1.89.1/24
> [105]chipmunk.cicely.de# route add 10.1.1.179/32 10.1.89.92
> add net 10.1.1.179: gateway 10.1.1.92
> [106]chipmunk.cicely.de# arp -S 10.1.1.179 0:e:42:2:0:42 pub
> delete: cannot locate 10.1.1.179
> set: proxy entry exists for non 802 device
> Exit 1
>
Since you added a host route, you need to supply the keyword
"only" when adding a proxy-arp entry. As in
"arp -S 10.1.1.179 0:e:42:2:0:42 pub only"
-- Qing
More information about the freebsd-net
mailing list