Date: Fri, 13 Jul 2012 08:41:23 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-net@freebsd.org Cc: Yuri <yuri@rawbw.com>, Brooks Davis <brooks@freebsd.org>, Peter Jeremy <peter@rulingia.com> Subject: Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP Message-ID: <201207130841.23528.jhb@freebsd.org> In-Reply-To: <20120713094830.GA83006@server.rulingia.com> References: <4FFF3683.7020107@rawbw.com> <20120713094830.GA83006@server.rulingia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[ Adding Brooks, IIRC, he imported the current dhclient ] On Friday, July 13, 2012 5:48:30 am Peter Jeremy wrote: > On 2012-Jul-12 13:41:39 -0700, Yuri <yuri@rawbw.com> wrote: > >I have the simplest possible DHCP setup: ifconfig_re0="DHCP" in > >/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 same, > >old one is not removed. > >When I plug it into another network, the same IP address stays. New IP > >doesn't get set. This is bad. > >So I have to manually do 'ifconfig re0 down && remove <OLD-IP> && > >ifconfig re0 up'. > > This is a bug in dhclient - see PR bin/166656, which includes a fix. I think this is the correct answer. Brooks, can you look at the PR and patch? If you are busy I can commit it if you give the ok. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207130841.23528.jhb>