ifconfig_ed0="DHCP" does not work on 8.0-BETA3

Brooks Davis brooks at freebsd.org
Wed Sep 9 15:52:34 UTC 2009


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 at 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




More information about the freebsd-stable mailing list