From owner-freebsd-stable@FreeBSD.ORG Fri Sep 7 13:05:54 2012 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 437DE106571B for ; Fri, 7 Sep 2012 13:05:54 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id B29878FC0C for ; Fri, 7 Sep 2012 13:05:53 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q87D5p4c047892; Fri, 7 Sep 2012 17:05:51 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q87D5pwX047891; Fri, 7 Sep 2012 17:05:51 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 7 Sep 2012 17:05:51 +0400 From: Gleb Smirnoff To: Brad Plank Message-ID: <20120907130551.GG44854@FreeBSD.org> References: <50410ACC.4010901@gta.com> <504257C9.3080502@norma.perm.ru> <5045FFB3.9090707@gta.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <5045FFB3.9090707@gta.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@FreeBSD.org Subject: Re: VLAN and ARP table X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2012 13:05:54 -0000 On Tue, Sep 04, 2012 at 09:18:43AM -0400, Brad Plank wrote: B> VLAN interfaces that have a parent interface configured with an IP B> address do not show up in the arp table. If the VLAN's parent interface B> does not have an IP address, it will show up in the arp table. B> [Notice the output from ifconfig below, to duplicate this issue.] B> B> #ifconfig B> em0: flags=8843 metric 0 mtu 1500 B> options=9b B> ether 08:00:27:b7:11:3b B> inet 10.20.13.104 netmask 0xffff0000 broadcast 10.20.255.255 B> inet6 fe80::a00:27ff:feb7:113b%em0 prefixlen 64 scopeid 0x1 B> inet6 2620:3f:8000:1:d::104 prefixlen 64 B> nd6 options=21 B> media: Ethernet autoselect (1000baseT ) B> status: active B> vlan0: flags=8843 metric 0 mtu 1500 B> options=3 B> ether 08:00:27:b7:11:3b B> inet 172.16.200.104 netmask 0xffffff00 broadcast 172.16.200.255 B> nd6 options=29 B> media: Ethernet autoselect (1000baseT ) B> status: active B> vlan: 115 parent interface: em0 B> B> # arp -an B> ? (10.20.13.112) at c8:60:00:c3:24:19 on em0 expires in 1182 seconds B> [ethernet] B> ? (10.20.13.9) at 00:12:3f:20:b9:4c on em0 expires in 1104 seconds B> [ethernet] B> ? (10.20.13.104) at 08:00:27:b7:11:3b on em0 permanent [ethernet] B> ? (10.20.13.110) at 00:90:fb:02:db:e8 on em0 expires in 669 seconds B> [ethernet] B> ? (10.20.13.109) at 08:00:27:7c:19:d5 on em0 expires in 1199 seconds B> [ethernet] B> ? (10.20.254.254) at 00:00:5e:00:01:33 on em0 expires in 1179 seconds B> [ethernet] Can't reproduce that on 10-current: root@behemoth:~:|>ifconfig vlan0 create root@behemoth:~:|>ifconfig vlan0 vlan 666 vlandev igb1 10.205.0.1/24 root@behemoth:~:|>arp -s 10.205.0.2 0:0:0:0:0:0 root@behemoth:~:|>arp -an root@behemoth:~:|>arp -an | grep vlan ? (10.205.0.2) at 00:00:00:00:00:00 on vlan0 permanent [vlan] root@behemoth:~:|> May it happen that your vlan0 really doesn't have any entries in arp cache? -- Totus tuus, Glebius.