From owner-freebsd-current@freebsd.org Fri Oct 30 14:26:52 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82887A1EB36 for ; Fri, 30 Oct 2015 14:26:52 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 6718A1E20 for ; Fri, 30 Oct 2015 14:26:52 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: by mailman.ysv.freebsd.org (Postfix) id 66ADDA1EB35; Fri, 30 Oct 2015 14:26:52 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C475A1EB34 for ; Fri, 30 Oct 2015 14:26:52 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [IPv6:2607:fc50:1000:7400:216:3eff:fe72:314f]) by mx1.freebsd.org (Postfix) with ESMTP id 337CD1E1E; Fri, 30 Oct 2015 14:26:52 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from marvin.beer.town (unknown [76.164.8.130]) by smtp.vangyzen.net (Postfix) with ESMTPSA id 2821F56486; Fri, 30 Oct 2015 09:26:51 -0500 (CDT) Subject: Re: r288951: ifconfig -alias, arp not removed To: Bryan Drewery , current@FreeBSD.org References: <5632485F.5080203@FreeBSD.org> <56324C80.8000408@vangyzen.net> <56324D69.4080507@FreeBSD.org> <5632961B.2040604@FreeBSD.org> From: Eric van Gyzen Message-ID: <56337E2A.20500@vangyzen.net> Date: Fri, 30 Oct 2015 09:26:50 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5632961B.2040604@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 14:26:52 -0000 On 10/29/2015 16:56, Bryan Drewery wrote: > On 10/29/2015 9:46 AM, Bryan Drewery wrote: >> On 10/29/15 9:42 AM, Eric van Gyzen wrote: >>> On 10/29/2015 11:25, Bryan Drewery wrote: >>>> # ifconfig >>>> igb0: flags=8843 metric 0 mtu 1500 >>>> >>>> options=403bb >>>> ether c8:0a:a9:04:39:78 >>>> inet 10.10.0.7 netmask 0xffff0000 broadcast 10.10.255.255 >>>> inet 10.10.7.2 netmask 0xffff0000 broadcast 10.10.255.255 >>>> inet 10.10.0.9 netmask 0xffff0000 broadcast 10.10.255.255 >>>> nd6 options=23 >>>> media: Ethernet autoselect (1000baseT ) >>>> status: active >>>> >>>> # ifconfig igb0 inet 10.10.0.9 -alias >>>> # arp -an|grep 10.10.0.9 >>>> ? (10.10.0.9) at c8:0a:a9:04:39:78 on igb0 permanent [ethernet] >>>> # arp -d 10.10.0.9 >>>> arp: writing to routing socket: Operation not permitted >>>> >>>> I swear this is not normal. I'm on an older build as well, r288951. >>> >>> That definitely looks abnormal. See what "route get" says. I think >>> that's the error you get when there is a route for that address. >>> >> >> # netstat -rn|grep 10.10.0.9 >> # route get 10.10.0.9 >> route to: lapbox >> destination: 10.10.0.0 >> mask: 255.255.0.0 >> fib: 0 >> interface: igb0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 1500 1 0 >> # route get 5.5.5.5 >> route to: 5.5.5.5 >> destination: default >> mask: default >> gateway: router.asus.com >> fib: 0 >> interface: igb0 >> flags: >> recvpipe sendpipe ssthresh rtt,msec mtu weight expire >> 0 0 0 0 1500 1 0 >> >> For more context, this current system had 10.10.0.9 added to it. I >> started up a VM which also started using 10.10.0.9 and managed to "win" >> on the local network for owning it. (I don't know arp and this stuff >> well). I then came to this system to remove the alias and the arp entry >> to allow me to connect from it and have gotten into this situation. >> > > Just saw this in dmesg, which is what I described: > > arp: 08:00:27:12:c1:a5 is using my IP address 10.10.0.9 on igb0! > arp: 08:00:27:12:c1:a5 is using my IP address 10.10.0.9 on igb0! > arp: 08:00:27:12:c1:a5 attempts to modify permanent entry for 10.10.0.9 > on igb0 > arp: 08:00:27:12:c1:a5 attempts to modify permanent entry for 10.10.0.9 > on igb0 > arp: 08:00:27:12:c1:a5 attempts to modify permanent entry for 10.10.0.9 > on igb0 > arp: 08:00:27:12:c1:a5 attempts to modify permanent entry for 10.10.0.9 > on igb0 The kernel should have removed the arp entry when you removed the alias. I just played with this on r289837 (one week old), and I could not reproduce the failure. In particular, r289501 sounds interesting, even though your interface is up. Eric