From owner-freebsd-stable@FreeBSD.ORG Mon Nov 17 20:02:53 2008 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 5E0FD1065670 for ; Mon, 17 Nov 2008 20:02:53 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id E9A488FC18 for ; Mon, 17 Nov 2008 20:02:52 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA11.westchester.pa.mail.comcast.net ([76.96.62.36]) by QMTA09.westchester.pa.mail.comcast.net with comcast id gJuS1a00D0mv7h059L2sJz; Mon, 17 Nov 2008 20:02:52 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA11.westchester.pa.mail.comcast.net with comcast id gL2r1a0022P6wsM3XL2ro0; Mon, 17 Nov 2008 20:02:52 +0000 X-Authority-Analysis: v=1.0 c=1 a=KxjOStg9nI0A:10 a=ta0Jkjhx-mIA:10 a=QycZ5dHgAAAA:8 a=lAaB-bto0OL5IMqRhA0A:9 a=TtTIlnhxIKH-XV7i6RoA:7 a=4wF9NWMi8qYGwvObpkiDGVl-MGUA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id DA52A33C36; Mon, 17 Nov 2008 12:02:50 -0800 (PST) Date: Mon, 17 Nov 2008 12:02:50 -0800 From: Jeremy Chadwick To: Steven Hartland Message-ID: <20081117200250.GA38619@icarus.home.lan> References: <89DE4FDF67DC40AE88477897DF4CD0E7@multiplay.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <89DE4FDF67DC40AE88477897DF4CD0E7@multiplay.co.uk> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-stable@freebsd.org Subject: Re: Possible regression in ifconfig under7.0 - removes valid default route 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: Mon, 17 Nov 2008 20:02:53 -0000 On Mon, Nov 17, 2008 at 07:11:50PM -0000, Steven Hartland wrote: > I believe there "may be" a regression in the behaviour of ifconfig or > possibly just something I've never experienced before. > > Basically when changing the IP of one of our machines, it suddenly > became inaccessible. After some investigation it turned out the machine > was inaccessible from anything other than the local VLAN and continued > diagnostics determined that the process of changing the IP had also > removed the default route. > > This was clearly unexpected behaviour as the new IP was on the same > VLAN as the old IP and hence no routing table updates should be > required. > > I don't have any older machines to test this on but I believe we have > done this procedure in the past without any such issues so wanted to > raise it here to see if anyone else has had experience with it. > > Even if this isn't a regression it may well be something worth fixing > as its quite unexpected behaviour which could render a machine totally > inaccessible. I can try to reproduce this if you'd like, on a VMware session. One case where the default route could be (I haven't checked) removed: some NIC drivers in the past, when changing the "primary IP" (first IP shown in ifconfig for an interface), would actually bring down the entire interface (e.g. ifconfig XXX down) then back up again a second or two later. dmesg on your machine would be able to confirm whether or not this is happening. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |