Date: Wed, 9 Sep 2009 10:52:57 -0500 From: Brooks Davis <brooks@freebsd.org> To: Pyun YongHyeon <pyunyh@gmail.com>, freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: ifconfig_ed0="DHCP" does not work on 8.0-BETA3 Message-ID: <20090909155257.GF42196@lor.one-eyed-alien.net> In-Reply-To: <20090905110635.GG87716@graf.pompo.net> References: <20090904173811.GA45176@graf.pompo.net> <20090904214148.GB9950@michelle.cdnetworks.com> <20090904215747.GB82231@lor.one-eyed-alien.net> <20090905110635.GG87716@graf.pompo.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 05, 2009 at 01:06:35PM +0200, Thierry Thomas wrote: > Le Ven 4 sep 09 ? 23:57:47 +0200, Brooks Davis <brooks@freebsd.org> > ?crivait?: > > > This is a know issue with some devices supported by ed(4). You can work > > around it by changing DHCP to SYNCDHCP which will cause dhclient to > > alwasy start immediatly on that interface instead of waiting for a link > > state change that never happens. > > Thanks for the hint! > > What about the following patch? > > --- man4_ed.4.diff begins here --- > --- src/share/man/man4/ed.4.orig 2009-08-03 10:13:06.000000000 +0200 > +++ src/share/man/man4/ed.4 2009-09-05 12:51:51.000000000 +0200 > @@ -425,3 +425,11 @@ > .Pp > PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet > port only at this time. > +.Pp > +If the line "ed0: link state changed to UP" does not show up in dmesg, the line > +.Pp > +ifconfig_ed0="DHCP" > +.Pp > +in > +.Xr rc.conf 5 > +will be ineffective. In this case, replace "DHCP" by "SYNCDHCP". > --- man4_ed.4.diff ends here --- > > Don't hesitate to reword it - my englsh can be terrible! I'd rather not mention the "link state changed" message since I'd love to see it go away. How's this? Index: ed.4 =================================================================== --- ed.4 (revision 196736) +++ ed.4 (working copy) @@ -425,3 +425,21 @@ .Pp PC Card attachment supports the D-Link DMF650TX LAN/Modem card's Ethernet port only at this time. +.Pp +Some devices supported by +.Nm +do no generate the link state change events used by +.Xr devd 8 +to start +.Xr dhclinet 8 . +If you have problems with +.Xr dhclient 8 +not starting and the device is always attached to the network it may +be possible to work around this by changing +.Dq Li DHCP +to +.Dq Li SYNCDHCP +in the +.Va ifconfig_ed0 +entry in +.Pa /etc/rc.conf . =- Brooks
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090909155257.GF42196>