From owner-freebsd-stable@FreeBSD.ORG Mon Aug 4 09:08:33 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F12071065683 for ; Mon, 4 Aug 2008 09:08:33 +0000 (UTC) (envelope-from nakal@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id 7CAB88FC08 for ; Mon, 4 Aug 2008 09:08:33 +0000 (UTC) (envelope-from nakal@web.de) Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate01.web.de (Postfix) with ESMTP id 1321DEA29E99; Mon, 4 Aug 2008 11:08:32 +0200 (CEST) Received: from [217.236.48.156] (helo=zelda.local) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1KPw3L-0005tn-00; Mon, 04 Aug 2008 11:08:31 +0200 Date: Mon, 4 Aug 2008 11:08:25 +0200 From: Martin To: Torfinn Ingolfsen Message-ID: <20080804110825.3e1699be@zelda.local> In-Reply-To: <20080802235010.facd4cb9.torfinn.ingolfsen@broadpark.no> References: <20080801142005.473c17ca@zelda.local> <20080801124224.GA17183@eos.sc1.parodius.com> <20080802070015.7f64c862@web.de> <20080802125553.d9c83a55.torfinn.ingolfsen@broadpark.no> <20080802224046.3b547283@web.de> <20080802235010.facd4cb9.torfinn.ingolfsen@broadpark.no> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/7jdygWwYFy23LiwDOVT/sL7"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Sender: nakal@web.de X-Sender: nakal@web.de X-Provags-ID: V01U2FsdGVkX19lpvCnJSI7P++LWV1Zq64itX8F782ulldWHYUU Ug+hcv7cPTjJq7MhBEkt1AYoDAB348qK1E/y/j1+I45XaAwP/e 8xrbIlgbQ= Cc: freebsd-stable@freebsd.org Subject: Re: em(4) on FreeBSD is sometimes annoying X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Aug 2008 09:08:34 -0000 --Sig_/7jdygWwYFy23LiwDOVT/sL7 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Sat, 02 Aug 2008 23:50:10 +0200 schrieb Torfinn Ingolfsen : > On Sat, 02 Aug 2008 22:40:46 +0200 > Martin wrote: >=20 > > good point, no. The problem appears when the first thing called on > > this interface is dhclient (caused by ifconfig_em0=3D"DHCP"). I could >=20 > So, if you don't automatically configure the interface, but instead do > something like: > 'ifconfig em0 up' > and then the DHCP stuff > does the interface work then? Hi Torfinn, I've put "/sbin/ifconfig em0 up" into rc.local. Now the behavior is slightly different. Steps: 1) I switch laptop on with cable unplugged. Everything ok (DHCP failed, of course; this is normal). 2) I plug the cable in: "state: active". Yay! This is OK! 3) NIC does not get IP (one time it got the correct IP but the it lost it again, I could see by repeatedly typing "ifconfig em0"). 4) I kill the dhclient. 5) I manually start "dhclient em0". No response (DHCPREQUEST, DHCPDISCOVER, does not finish). 6) I start "ifconfig em0 down" and once again "dhclient em0" (this time without "ifconfig em0 up"!). 7) Got an IP, without delays (as it should be). -- Martin --Sig_/7jdygWwYFy23LiwDOVT/sL7 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiWxwkACgkQC3yNaKlBCg239gCdGNVbhmpXkRAw0c0OigOz/raF 8kYAoJAHFijXhiKNi9VluXXFCr+8MtO3 =f8yH -----END PGP SIGNATURE----- --Sig_/7jdygWwYFy23LiwDOVT/sL7--