network problem on 8.2 stable

Xihong Yin xyin at
Sat Nov 19 02:24:53 UTC 2011

I set the adapter up.

Here is the output of 'dhclient em0'

DHCPREQUEST on em0 to port 67
bound to -- renewal in 1800 seconds.

'ifconfig em0' output is

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         ether 00:26:b9:9d:30:dc
         inet netmask 0xff000000 broadcast
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active

'netstat -r' show there is no default route

Routing tables

Destination        Gateway            Flags    Refs      Use  Netif Expire            link#1             U           0        0    em0
localhost          link#14            UH          0       28    lo0

But I can set the adapter manually by

$ifconfig em0 inet

and it works.

The question is why dhclient can't get the ip address even a lease is obtained.


On Thu, 17 Nov 2011, Warren Block wrote:

> On Thu, 17 Nov 2011, Xihong Yin wrote:
>> Hi,
>> I upgraded from 8.0 stable to 8.2 stable today. Now I can't connect to the 
>> network through the network adapter. I've set DCHP and SYNCDHCP in 
>> /etc/rc.conf and it worked in 8.0. It seems the dhclient problem. The ip 
>> address can't be obtained.
>> When I run 'dhclient em0' manually, it shows that an ip address is leased. 
>> But actually it is not. The 'ifconfig em0' always shows an address of 
>> with active status.
>> $dhclient em0
>> DHCPREQUEST on em0 to port 67
>> DHCPACK from
>> bound to -- renewal in 43200 seconds
>> But
>> $ifconfig em0
>> em0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>        ether 6c:62:6d:03:16:31
>>        inet netmask 0xffffff00 broadcast
>>        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
>>        status: active
>> Any help would be appreciated.
> The interface is down: no "UP" in the flags.  What happens if you just do it 
> manually:
>  ifconfig em0 up
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list