From owner-freebsd-current@freebsd.org Thu Oct 29 16:46:38 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 66325A21FC2 for ; Thu, 29 Oct 2015 16:46:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) 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 4AE181ED6 for ; Thu, 29 Oct 2015 16:46:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 47F69A21FC1; Thu, 29 Oct 2015 16:46:38 +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 4790DA21FC0 for ; Thu, 29 Oct 2015 16:46:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 34DEB1ED5; Thu, 29 Oct 2015 16:46:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 2EE7A133E; Thu, 29 Oct 2015 16:46:38 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id D5CC4174AF; Thu, 29 Oct 2015 16:46:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id 2Y8FZ66QnCNb; Thu, 29 Oct 2015 16:46:34 +0000 (UTC) Subject: Re: r288951: ifconfig -alias, arp not removed DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com B1A7D174A5 To: Eric van Gyzen , current@FreeBSD.org References: <5632485F.5080203@FreeBSD.org> <56324C80.8000408@vangyzen.net> From: Bryan Drewery Organization: FreeBSD Message-ID: <56324D69.4080507@FreeBSD.org> Date: Thu, 29 Oct 2015 09:46:33 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <56324C80.8000408@vangyzen.net> 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: Thu, 29 Oct 2015 16:46:38 -0000 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. -- Regards, Bryan Drewery