System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP

Peter Jeremy peter at rulingia.com
Fri Jul 13 09:48:41 UTC 2012


On 2012-Jul-12 13:41:39 -0700, Yuri <yuri at 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.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20120713/9fdd3cf9/attachment.pgp


More information about the freebsd-net mailing list