From owner-freebsd-net@FreeBSD.ORG Wed Mar 3 02:53:53 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 44292106564A for ; Wed, 3 Mar 2010 02:53:53 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id D97578FC0A for ; Wed, 3 Mar 2010 02:53:52 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o232rYh1089198 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Mar 2010 03:53:35 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o232rVCQ083051 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Mar 2010 03:53:31 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o232rVRP080698; Wed, 3 Mar 2010 03:53:31 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o232rVgE080697; Wed, 3 Mar 2010 03:53:31 +0100 (CET) (envelope-from ticso) Date: Wed, 3 Mar 2010 03:53:31 +0100 From: Bernd Walter To: "Li, Qing" Message-ID: <20100303025331.GT58319@cicely7.cicely.de> References: <20100302134323.GA58319@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.000, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-net@freebsd.org, Qing Li , ticso@cicely.de, Anton Yuzhaninov 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 Reply-To: ticso@cicely.de 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:53:53 -0000 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? > > > > > > 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 http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.