dhcpcd stuck on trying to use old lease
Roger Price
Fri Apr 06 20:47:34 2012Hi, I'm running dhcpcd 3.2.3 as included in the 32 bit openSUSE 12.1 Linux distribution. The dhcpcd daemon ran perfectly until I unplugged the PC from a 10.0.0/24 subnetwork and plugged it into a 10.218.0/24 network. The dhcpcd daemon now seems to be permanently stuck on its old lease.
The DHCP server is a TP-Link WR1043ND wireless router and it is running. I pulled the ethernet cable from the openSUSE box and pushed it into a Windows XP laptop. The laptop received two IP addresses in 10.218.0/24, one for the cable and the other for the wireless card.
The dhcpcd daemon is running, command "ps aux | grep dhcpcd" reports root 1451 0.0 0.0 2096 764 ? S 00:07 0:00 /sbin/dhcpcd --netconfig -L -E -c /etc/sysconfig/network/scripts/dhcpcd-hook -t 0 -h sandrane eth0 In file /var/log/messages I get the following message every 20 seconds Apr 5 00:10:24 sandrane dhcpcd[1451]: eth0: timed out Apr 5 00:10:24 sandrane dhcpcd[1451]: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info' Apr 5 00:10:24 sandrane dhcpcd[1451]: eth0: broadcasting for a leaseI tried with the openSUSE system administration software YaST to delete and then redefine eth0 but no change. I tried to stop eth0 with the Linux command "ifconfig eth0 down" and then reboot, but no change.
File /var/lib/dhcpcd/dhcpcd-eth0.info contains INTERFACE='eth0' CLASSID='dhcpcd 3.2.3' CLIENTID='01:00:14:6c:8e:23:d0' DHCPCHADDR='00:14:6c:8e:23:d0'I tried replacing eth0 with another network card. The command "ps aux | grep dhcpcd" now reports
root 7149 0.0 0.0 2096 656 ? S 10:46 0:00 /sbin/dhcpcd --netconfig -L -E -c /etc/sysconfig/network/scripts/dhcpcd-hook -t 0 -h sandrane eth_s2_0 and I get the following message in /var/log/messages every 20 seconds: Apr 5 10:47:05 sandrane dhcpcd[7149]: eth_s2_0: timed out Apr 5 10:47:05 sandrane dhcpcd[7149]: eth_s2_0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth_s2_0.info' Apr 5 10:47:05 sandrane dhcpcd[7149]: eth_s2_0: lease information file `/var/lib/dhcpcd/dhcpcd-eth_s2_0.info' does not exist Apr 5 10:47:05 sandrane dhcpcd[7149]: eth_s2_0: broadcasting for a lease I tried the dhcpcd -n and -k options, but to no effect.I looked at client.c, but my C programming skills are poor and I'm not clear about what is happening. What is causing dhcpcd to insist on trying to use an old lease?
Is there some way of getting dhcpcd to re-initialize and try for a new lease?
Roger
| Re: dhcpcd stuck on trying to use old lease | Roy Marples |