Date: Wed, 3 Mar 2010 03:53:31 +0100 From: Bernd Walter <ticso@cicely7.cicely.de> To: "Li, Qing" <qing.li@bluecoat.com> Cc: freebsd-net@freebsd.org, Qing Li <qingli@freebsd.org>, ticso@cicely.de, Anton Yuzhaninov <citrin@citrin.ru> Subject: Re: net/mpd5: proxy arp don't work on FreeBSD 8 Message-ID: <20100303025331.GT58319@cicely7.cicely.de> In-Reply-To: <B583FBF374231F4A89607B4D08578A4306BE1723@bcs-mail03.internal.cacheflow.com> References: <20100302134323.GA58319@cicely7.cicely.de> <B583FBF374231F4A89607B4D08578A4306BE1723@bcs-mail03.internal.cacheflow.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 02, 2010 at 06:07:21PM -0800, Li, Qing wrote: > 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. Sorry about this. I just responded to another ones mail and didn't search. > > 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. Ok - this explains the "delete: cannot locate 10.1.1.179" below, which is very descriptive. Here it is the same eror in the same program - can we get the same message? > <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" [87]chipmunk.cicely.de# arp -an ? (10.1.1.9) at 00:1c:c0:94:2c:d7 on vlan0 expires in 1078 seconds [vlan] ? (10.1.1.38) at 00:0e:42:02:00:50 on vlan0 permanent [vlan] ? (10.1.1.4) at 00:0e:42:02:00:21 on vlan0 expires in 1011 seconds [vlan] ? (10.1.1.16) at 00:1c:c0:30:16:a1 on vlan0 expires in 1187 seconds [vlan] [88]chipmunk.cicely.de# ifconfig vlan3 10.1.89.1/24 [89]chipmunk.cicely.de# route add 10.1.1.179/32 10.1.89.92 add net 10.1.1.179: gateway 10.1.89.92 [90]chipmunk.cicely.de# arp -S 10.1.1.179 0:e:42:2:0:50 pub only delete: cannot locate 10.1.1.179 set: proxy entry exists for non 802 device Exit 1 [91]chipmunk.cicely.de# arp -an ? (10.1.89.1) at 00:0e:42:02:00:50 on vlan3 permanent [vlan] ? (10.1.1.9) at 00:1c:c0:94:2c:d7 on vlan0 expires in 1174 seconds [vlan] ? (10.1.1.38) at 00:0e:42:02:00:50 on vlan0 permanent [vlan] ? (10.1.1.4) at 00:0e:42:02:00:21 on vlan0 expires in 965 seconds [vlan] ? (10.1.1.16) at 00:1c:c0:30:16:a1 on vlan0 expires in 1200 seconds [vlan] Still the same. PS: don't be surprised that the MAC is different - I changed the hardware, but it is the same boot media on the same board type. -- B.Walter <bernd@bwct.de> http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100303025331.GT58319>