Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2010 18:07:21 -0800
From:      "Li, Qing" <qing.li@bluecoat.com>
To:        <ticso@cicely.de>, "Anton Yuzhaninov" <citrin@citrin.ru>
Cc:        freebsd-net@freebsd.org, Qing Li <qingli@freebsd.org>
Subject:   RE: net/mpd5: proxy arp don't work on FreeBSD 8
Message-ID:  <B583FBF374231F4A89607B4D08578A4306BE1723@bcs-mail03.internal.cacheflow.com>
In-Reply-To: <20100302134323.GA58319@cicely7.cicely.de>
References:  <hmgmol$alh$1@dough.gmane.org><20100301223327.GQ58319@cicely7.cicely.de><hmidhl$lj9$1@dough.gmane.org> <20100302134323.GA58319@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

>=20
> 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>

>=20
> 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



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