Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2012 19:48:30 +1000
From:      Peter Jeremy <peter@rulingia.com>
To:        Yuri <yuri@rawbw.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: System doesn't detect unplugged network cable and doesn't set interface up properly with DHCP
Message-ID:  <20120713094830.GA83006@server.rulingia.com>
In-Reply-To: <4FFF3683.7020107@rawbw.com>
References:  <4FFF3683.7020107@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--lrZ03NoBR/3+SXJZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 2012-Jul-12 13:41:39 -0700, Yuri <yuri@rawbw.com> 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 same,=
=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 <OLD-IP> &&=20
>ifconfig re0 up'.

This is a bug in dhclient - see PR bin/166656, which includes a fix.

--=20
Peter Jeremy

--lrZ03NoBR/3+SXJZ
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk//7u4ACgkQ/opHv/APuIf4qgCfQpqwfKmBkg0mI8mZAWdH1IMd
R9gAn1WjcuJ3IBIaLpVgJq3xLJXZVNWX
=hKmm
-----END PGP SIGNATURE-----

--lrZ03NoBR/3+SXJZ--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120713094830.GA83006>