dhclient conflict between /sbin/devd and /etc/rc.d/netif ?

Brooks Davis brooks at freebsd.org
Sun Feb 10 17:06:28 PST 2008


On Mon, Feb 11, 2008 at 11:37:21AM +1100, Robert Jenssen wrote:
> Hi,
> Every so often I have trouble connecting rt2560 based PCI wireless network 
> card to my wireless router/access point. Typically I get:
> 
> # sudo /etc/rc.d/netif restart ral0
> Starting wpa_supplicant.
> ral0: no link .............. giving up
> ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>         ether 00:11:50:63:cd:47
>         media: IEEE 802.11 Wireless Ethernet autoselect (DS/1Mbps)
>         status: no carrier
> 
> Even though there seems to be plenty of signal power:
> 
> # sudo ifconfig ral0 list scan
> SSID            BSSID              CHAN RATE   S:N     INT CAPS
> xxxxxxx...      00:xx:xx:xx:xx:xx   10   54M -74:-95  100 EPS  WPA
> 
> Recently I noticed that sometimes, after the above "netif restart" fails, the 
> ral0 interface "automagically" comes up anyway. Then dhclient is owned 
> by /sbin/devd. The default devd.conf starts dhclient for both ethernet and 
> PCI-cardbus devices. Is it a good idea for both /sbin/devd 
> and /etc/rc.d/netif to start a dhclient on ral0 at about the same time? 

What do you mean by "owned"?  If there's no dhclient running and an
interface configured for dhcp associates or negotiates a link, devd
starts a dhclient.  Assuming I get time to make the necessicary changes
and push the issue, netif won't start dhclient at all in the future.

> Should I disable dhclient in /etc/devd.conf?

I wouldn't recommend it unless you never lose association since if you do and
you remove the lines in devd.conf you will end up without a dhclient.

-- Brooks

> Regards,
> 
> Rob Jenssen
>  
> PS:
> 
> "uname -a" shows:
> FreeBSD 7.0-PRERELEASE #1: Fri Feb  8 14:36:49 EST 2008
> 
> dmesg.today shows:
> ral0: <Ralink Technology RT2560> mem 0xf2004000-0xf2005fff irq 22 at device 
> 6.0 on pci2
> ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
> ral0: Ethernet address: 00:11:50:63:cd:47
> ral0: [ITHREAD]
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20080211/af82b902/attachment.pgp


More information about the freebsd-net mailing list