On 01/06/2012 03:25 AM, Per Jessen wrote:
Per Jessen wrote:
So I then issued a "/etc/init.d/network restart-all-dhcp-clients". This option did a lot more as reflected in messages, but it still didn't renew the DHCP lease. It started dhcpcd but put it in background, then dhcpcd reported "eth0 timed out". At this point it tried to "use old lease in /var/lib/dhcpcd/dhcpcd-eth0.info'", which still contained the old lease info, and proceeded to reuse the old lease without broadcasting for a new one. It must have done a broadcast, otherwise why would it report "eth0 timed out"? Following a time-out, it seems reasonable to attempt a fall-back to the previous lease. In the logs you posted, there is a 20 second span between broadcast and time-out:
Jan 5 13:47:11 ironhead dhcpcd[6530]: eth0: broadcasting for a lease Jan 5 13:47:27 ironhead ifup-dhcp: eth0 DHCP4 continues in background Jan 5 13:47:31 ironhead dhcpcd[6530]: eth0: timed out Jan 5 13:47:31 ironhead dhcpcd[6530]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Is there a problem with the DHCP server? If you check the server logs, you should see a complete trace of the negotation, but I guess the server isn't responding, hence the time-out.
Good catch, Per! That was part of the problem. I tried the case of moving the Ethernet cable from the big outside network to a natted local router and once dhcpcd was restarted it picked up the new lease after four seconds. But, I had to manually restart dhcpcd by running /etc/init.d/network restart-all-dhcp-clients. Bringing the interface down and up again didn't bounce dhcpcd. I checked on a 11.4 system and it behaved the same. So it appears that my only problem was the sluggish DHCP server on the big network. It could be that 11.4 behaves differently (I didn't test) but a valid argument can be made that 12.1 is working correctly. Still, it would be nice if a hardware-induced (cable swap) interface bounce would also generate a new dhcpcd broadcast. Feature request? Regards, Lew -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org