Current-Users archive

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

dhcpcd [configuration] problems



  I have a sparc64 host running netbsd-6.  When I boot, the bge0 interface is 
connected, and can and will receive an address (and an IPv6 rtadv), but it 
seems not to be able to do so during /etc/rc.d/network.  I have:

ifconfig_bge0="dhcp"

in my /etc/rc.conf, and I've even tried putting a "!sleep 10" on either side of 
it, which does cause a sleep, but doesn't alleviate the problem.  I've reset 
dhcpcd_flags to "-w", and then added "-L" (to avoid the ZeroConf address), and 
later "-t 60" to extend the timeout.

  However, now that I have extended the timeout, the problem seems to be that 
it doesn't keep *trying*.  When dhcpcd starts up, it triggers a carrier reset.  
Then, since autoconfiguration seems to take longer than 10-15 seonds, it's 
given up by then.  I see:

Configuring network interfaces: bge0dhcpcd[113]: version 5.5.4 starting
dhcpcd[113]: bge0: carrier acquired
dhcpcd[113]: bge0: carrier lost
dhcpcd[113]: bge0: waiting for carrier
dhcpcd[113]: bge0: carrier acquired
dhcpcd[113]: bge0: sending IPv6 Router Solicitation
dhcpcd[113]: bge0: broadcasting for a lease
dhcpcd[113]: bge0: sending IPv6 Router Solicitation
dhcpcd[113]: bge0: sending IPv6 Router Solicitation
dhcpcd[113]: bge0: sending IPv6 Router Solicitation
dhcpcd[113]: bge0: no IPv6 Routers available
dhcpcd[113]: timed out
.

  And with a "-t 60", there's 40 seconds or so between the "no IPv6 Routers 
available", and the "timed out".  It doesn't rebroadcast for a lease, it 
doesn't send another router solicitation, and if it *would*, I suspect it would 
work.

  I don't see in the man page anything to tell it "please wait longer after the 
carrier is acquired", or "please keep trying harder if you don't get answers".  
Is there any way to do this?

            - Chris



Home | Main Index | Thread Index | Old Index