NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/41064: sk(4) doesn't get dhcp address at boot



>Number:         41064
>Category:       kern
>Synopsis:       sk(4) doesn't get dhcp address at boot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 24 10:35:00 +0000 2009
>Originator:     Christoph Egger
>Release:        5.99.8
>Organization:
>Environment:
NetBSD/amd64
>Description:
I have a strange problem with sk(4) and dhcp:
dhcpcd -n sk0  results in 'time out', when I run it the second time, I get an 
IP address.
the first time runs at boot via /etc/rc.d/networks
Run dhcpcd manually after boot to get an IP address.
I can also reproduce the same problem when I do

 /etc/rc.d/network stop ; /etc/rc.d/network start ; dhcpcd -n sk0

when dhcp times out, the dhcp server actually see's no packets coming in.

dhcpcd -k sk0 ; dhcpcd -n sk0  works
dhcpcd -k sk0 ; ifconfig sk0 down ; dhcpcd -n sk0  results in time out
dhcpcd -k sk0 ; ifconfig sk0 down ; ifconfig sk0 up ; dhcpcd -n sk0 results in 
time out
dhcpcd -k sk0 ; ifconfig sk0 down ; ifconfig sk0 up ; sleep 3 ; dhcpcd -n  sk0  
works
sounds like the makphy(4) or sk(4) driver needs a delay for power on ?

Workaround: In /etc/ifconfig.sk0 put these lines:

up
!sleep 3
dhcp

this makes /etc/rc.d/network start working at boot.

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index