From owner-freebsd-net@FreeBSD.ORG Tue Mar 2 12:44:14 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 E889F106566B for ; Tue, 2 Mar 2010 12:44:14 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9F3C08FC1B for ; Tue, 2 Mar 2010 12:44:14 +0000 (UTC) Received: by gya1 with SMTP id 1so88627gya.13 for ; Tue, 02 Mar 2010 04:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=ioVzvne6CfM/OKxadtKEt1yLBYVEMfoI7jD7RuDVbyk=; b=uP3YVCPX7+GGzj8JA1BbcrWWdMDO2mo3gCc5ahZWNkLTMpM6gcqo/7YZdiOzMSK3lV GlKBncJUxeOGCscRWLESRknlXETD9gNRSxeUDWnZH7rknUounruWuU12YUQucPpI7ljZ smELEeucYhxExCzVXSRFHlvf6t+BSEufwYpyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=BIhKvempVz/TLbPVxuVJQWe/c6k5mc+0TVnmZSHCQf6ZfcHQ5V1z/kdLHEavYOsTqb flqimYh3nbA4Qt1IYL4qF9re8/zBT9uAv6nkZ2/F2bTUseX1g1yToO3WlBIeo0jcYn8n t8s9xccbw4qPMEVgU1zFIieNiYx1Q9lVBCYQM= Received: by 10.101.36.7 with SMTP id o7mr736243anj.101.1267533848630; Tue, 02 Mar 2010 04:44:08 -0800 (PST) Received: from ?192.168.0.86? ([187.39.15.241]) by mx.google.com with ESMTPS id 22sm1455920yxe.54.2010.03.02.04.44.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 02 Mar 2010 04:44:07 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Luiz Otavio O Souza In-Reply-To: Date: Tue, 2 Mar 2010 09:44:04 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <083F4753-5883-4322-8324-BB6A540BAB69@gmail.com> References: To: Anton Yuzhaninov X-Mailer: Apple Mail (2.1077) Cc: freebsd-net@freebsd.org 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: Tue, 02 Mar 2010 12:44:15 -0000 Hi Anton, On Mar 2, 2010, at 8:13 AM, Anton Yuzhaninov wrote: > On Mon, 1 Mar 2010 15:33:41 +0000 (UTC), Anton Yuzhaninov wrote: > AY> mdp can't add proxy arp record. =46rom mpd logs: > AY> Mar 1 15:10:34 x0001 mpd: [B-1] IFACE: Add address = 10.25.1.240/32->10.25.1.241 to ng0 > AY> Mar 1 15:10:34 x0001 mpd: [B-1] exec: /usr/sbin/arp -S = 10.25.1.241 0:15:17:35:1c:22 pub > AY> Mar 1 15:10:34 x0001 mpd: [B-1] system: command "/usr/sbin/arp" = returned 256 > This problem can be repeated without mpd: >=20 > # ifconfig vlan408 > vlan408: flags=3D8844 metric 0 = mtu 1500 > options=3D3 > ether 00:04:23:ba:2a:7a > inet 10.25.1.244 netmask 0xffffff00 broadcast 10.25.1.255 > ... > # kldload ng_iface > # ngctl mkpeer . iface foobar inet > # ifconfig ng0 192.168.100.100/32 10.25.1.245 > # ifconfig ng0 > ng0: flags=3D88d1 = metric 0 mtu 1500 > inet 192.168.100.100 --> 10.25.1.245 netmask 0xffffffff > # arp -s 10.25.1.245 00:04:23:ba:2a:7a pub > cannot intuit interface index and type for 10.25.1.245 But what about the 192.168.100.100 ? You are using IPs from this network = somewhere else ? > This commands work fine on RELENG_7, but don't work on RELENG_8 or > CURRENT, and it seems to be regression. >=20 > --=20 > WBR, > Anton Yuzhaninov # ifconfig vlan100 create # ifconfig vlan100 vlan 100 vlandev rl0 # ifconfig vlan100 192.168.10.1/24 # ifconfig vlan100 vlan100: flags=3D8843 metric 0 = mtu 1500 ether 00:08:54:0e:55:77 inet 192.168.10.1 netmask 0xffffff00 broadcast 192.168.10.255 media: Ethernet autoselect (100baseTX ) status: active vlan: 100 parent interface: rl0 # kldload ng_iface # ngctl mkpeer . iface foobar inet # ifconfig ng0 1.2.3.4/32 192.168.10.2 # ifconfig ng0 ng0: flags=3D88d1 metric = 0 mtu 1500 inet 1.2.3.4 --> 192.168.10.2 netmask 0xffffffff=20 # arp -S 192.168.10.2 1:2:3:4:5:6 pub delete: cannot locate 192.168.10.2 cannot intuit interface index and type for 192.168.10.2 Then i just replace the bogus IP to some other valid IP (using the IP = from vlan100): # ifconfig ng0 192.168.10.1/32 192.168.10.2 # ifconfig ng0 ng0: flags=3D88d1 metric = 0 mtu 1500 inet 192.168.10.1 --> 192.168.10.2 netmask 0xffffffff=20 # arp -S 192.168.10.2 1:2:3:4:5:6 pub; echo $? arp: writing to routing socket: Invalid argument 0 # arp -an | grep 192.168.10.2 ? (192.168.10.2) at 01:02:03:04:05:06 on vlan100 permanent published = [vlan] Do you really have something using that IP (192.168.100.100) ? Your log from mpd is using the correct IP though. I still can't find = where arp(8) is failing. Luiz=