From owner-freebsd-net@FreeBSD.ORG Wed Mar 3 02:07:54 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D837106566B; Wed, 3 Mar 2010 02:07:54 +0000 (UTC) (envelope-from qing.li@bluecoat.com) Received: from whisker.bluecoat.com (whisker.bluecoat.com [216.52.23.28]) by mx1.freebsd.org (Postfix) with ESMTP id 725B68FC13; Wed, 3 Mar 2010 02:07:54 +0000 (UTC) Received: from bcs-mail03.internal.cacheflow.com ([10.2.2.95]) by whisker.bluecoat.com (8.14.2/8.14.2) with ESMTP id o2327ZYh028092; Tue, 2 Mar 2010 18:07:36 -0800 (PST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Tue, 2 Mar 2010 18:07:21 -0800 Message-ID: In-Reply-To: <20100302134323.GA58319@cicely7.cicely.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: net/mpd5: proxy arp don't work on FreeBSD 8 Thread-Index: Acq6Dna/xXbEMRAQQOSnYWSUrrrxnwAZr0cg References: <20100301223327.GQ58319@cicely7.cicely.de> <20100302134323.GA58319@cicely7.cicely.de> From: "Li, Qing" To: , "Anton Yuzhaninov" Cc: freebsd-net@freebsd.org, Qing Li Subject: RE: net/mpd5: proxy arp don't work on FreeBSD 8 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 02:07:54 -0000 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. >=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