Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 10:03:47 -0500
From:      Eric Anderson <anderson@centtech.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   New dhclient - supposed to 'down'/'delete'?
Message-ID:  <42B97DD3.3040109@centtech.com>

next in thread | raw e-mail | index | archive | help
Is the new dhclient code supposed to down and delete an interface when 
it has been disconnected from the media?

For instance: I boot up, use my wireless for a while (which dhclient 
handles), then disable my wireless card, and plug in the cable to my 
ethernet jack (bge0).  I see bge0 come up, and get an IP.  Everything 
looks good.  Now, I unplug the cable from bge0, and enable my wireless 
again.  Wireless gets an IP, but bge0 is still 'up' and has an IP 
configured, along with the routes that go with it.   I have to manually 
do an 'ifconfig bge0 down ; ifconfig bge0 delete', then restart dhclient 
on ath0 (wireless) or disable/enable ath0 to force it to try again..

Is this the expected behaviour?  Do I need to tweak some settings?

Here's what my rc.conf looks like (relevant parts):

ifconfig_bge0="DHCP"
ifconfig_ath0="DHCP ssid MYSSIDHERE wep wepkey 0xWEPKEYHERE weptxkey 1"
devd_enable="YES"

Running -current from about a week ago.

Eric



-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
A lost ounce of gold may be found, a lost moment of time never.
------------------------------------------------------------------------



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