From owner-freebsd-net@FreeBSD.ORG Fri Jul 13 18:23:14 2012 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 C3C66106566B; Fri, 13 Jul 2012 18:23:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (lor.one-eyed-alien.net [69.66.77.232]) by mx1.freebsd.org (Postfix) with ESMTP id 2A8898FC0A; Fri, 13 Jul 2012 18:23:14 +0000 (UTC) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.4/8.14.4) with ESMTP id q6DILw4E013639; Fri, 13 Jul 2012 13:21:58 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.4/8.14.4/Submit) id q6DILu8x013638; Fri, 13 Jul 2012 13:21:56 -0500 (CDT) (envelope-from brooks) Date: Fri, 13 Jul 2012 13:21:56 -0500 From: Brooks Davis To: John Baldwin Message-ID: <20120713182156.GB89895@lor.one-eyed-alien.net> References: <4FFF3683.7020107@rawbw.com> <20120713094830.GA83006@server.rulingia.com> <201207130841.23528.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline In-Reply-To: <201207130841.23528.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@freebsd.org, Peter Jeremy , Yuri Subject: Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP 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: Fri, 13 Jul 2012 18:23:14 -0000 --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 13, 2012 at 08:41:23AM -0400, John Baldwin wrote: > [ Adding Brooks, IIRC, he imported the current dhclient ] >=20 > On Friday, July 13, 2012 5:48:30 am Peter Jeremy wrote: > > On 2012-Jul-12 13:41:39 -0700, Yuri wrote: > > >I have the simplest possible DHCP setup: ifconfig_re0=3D"DHCP" in=20 > > >/etc/rc.conf. > > > > > >When the system boots, it gets connected fine. > > > > > >Now, I disconnect my laptop and connect it to another network. > > >When cable is disconnected, IP address of this interface stays the sam= e,=20 > > >old one is not removed. > > >When I plug it into another network, the same IP address stays. New IP= =20 > > >doesn't get set. This is bad. > > >So I have to manually do 'ifconfig re0 down && remove &&=20 > > >ifconfig re0 up'. > >=20 > > This is a bug in dhclient - see PR bin/166656, which includes a fix. >=20 > I think this is the correct answer. Brooks, can you look at the PR and p= atch? =20 > If you are busy I can commit it if you give the ok. That seems fine to me. Feel free to commit. -- Brooks --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iD8DBQFQAGdEXY6L6fI4GtQRAlMpAJ9slvaJFgUMRdBCLtcf8oM2lawaZQCgnTUC fFwHK3lPMuJq5b+c2G5fIUI= =5cwz -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--