Date: Mon, 4 Aug 2008 11:08:25 +0200 From: Martin <nakal@web.de> To: Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no> Cc: freebsd-stable@freebsd.org Subject: Re: em(4) on FreeBSD is sometimes annoying 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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Am Sat, 02 Aug 2008 23:50:10 +0200 schrieb Torfinn Ingolfsen <torfinn.ingolfsen@broadpark.no>: > On Sat, 02 Aug 2008 22:40:46 +0200 > Martin <nakal@web.de> wrote: > > > good point, no. The problem appears when the first thing called on > > this interface is dhclient (caused by ifconfig_em0="DHCP"). I could > > 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiWxwkACgkQC3yNaKlBCg239gCdGNVbhmpXkRAw0c0OigOz/raF 8kYAoJAHFijXhiKNi9VluXXFCr+8MtO3 =f8yH -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080804110825.3e1699be>
