From owner-freebsd-questions@FreeBSD.ORG Sat Nov 19 02:24:53 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67C7F106564A for ; Sat, 19 Nov 2011 02:24:53 +0000 (UTC) (envelope-from xyin@gmx.com) Received: from mailout-us.mail.com (mailout-us.gmx.com [74.208.5.67]) by mx1.freebsd.org (Postfix) with SMTP id 252208FC14 for ; Sat, 19 Nov 2011 02:24:53 +0000 (UTC) Received: (qmail invoked by alias); 19 Nov 2011 02:24:51 -0000 Received: from pool-173-64-118-99.bltmmd.fios.verizon.net (EHLO dell2) [173.64.118.99] by mail.gmx.com (mp-us008) with SMTP; 18 Nov 2011 21:24:51 -0500 X-Authenticated: #50283380 X-Provags-ID: V01U2FsdGVkX1808ycKLlw0i6+ZmyqbV+PMI4Jw5DiJnTmm5Hxgo5 UZIsodN8tUw5rg Date: Fri, 18 Nov 2011 21:24:57 -0500 (EST) From: Xihong Yin To: Warren Block In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Y-GMX-Trusted: 0 X-Mailman-Approved-At: Sat, 19 Nov 2011 03:27:35 +0000 Cc: FreeBSD Subject: Re: network problem on 8.2 stable X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Nov 2011 02:24:53 -0000 I set the adapter up. Here is the output of 'dhclient em0' DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.3.1 bound to 192.168.3.41 -- renewal in 1800 seconds. 'ifconfig em0' output is em0: flags=8843 metric 0 mtu 1500 options=219b ether 00:26:b9:9d:30:dc inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 media: Ethernet autoselect (100baseTX ) status: active 'netstat -r' show there is no default route Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 0.0.0.0 link#1 U 0 0 em0 localhost link#14 UH 0 28 lo0 But I can set the adapter manually by $ifconfig em0 inet 192.168.3.41/24 and it works. The question is why dhclient can't get the ip address even a lease is obtained. Thanks, 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 >> 0.0.0.0 with active status. >> >> $dhclient em0 >> DHCPREQUEST on em0 to 255.255.255.255 port 67 >> DHCPACK from 192.168.3.1 >> bound to 192.168.3.39 -- renewal in 43200 seconds >> >> But >> >> $ifconfig em0 >> em0: flags=8802 metric 0 mtu 1500 >> options=389b >> ether 6c:62:6d:03:16:31 >> inet 0.0.0.0 netmask 0xffffff00 broadcast 255.255.255.255 >> nd6 options=29 >> media: Ethernet autoselect (10baseT/UTP ) >> 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >