In file /var/log/messages I get the following message every 20 seconds
Apr 5 00:10:24 sandrane dhcpcd: eth0: timed out
Apr 5 00:10:24 sandrane dhcpcd: eth0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth0.info'
Apr 5 00:10:24 sandrane dhcpcd: eth0: broadcasting for a lease
I tried with YaST to delete and then redefine eth0 but no change. I
tried to stop eth0 with the command “ifconfig eth0 down” and then
reboot, but no change. I tried replacing eth0 with another network
card. The command “ps aux | grep dhcpcd” now reports
and I get the following message in /var/log/messages every 20 seconds:
Apr 5 10:47:05 sandrane dhcpcd: eth_s2_0: timed out
Apr 5 10:47:05 sandrane dhcpcd: eth_s2_0: trying to use old lease in `/var/lib/dhcpcd/dhcpcd-eth_s2_0.info'
Apr 5 10:47:05 sandrane dhcpcd: eth_s2_0: lease information file `/var/lib/dhcpcd/dhcpcd-eth_s2_0.info' does not exist
Apr 5 10:47:05 sandrane dhcpcd: eth_s2_0: broadcasting for a lease
Is there some way of getting dhcpcd to re-initialize and operate
Hi, The DHCP server is running, I just checked it, and the cable, again, by substituting
another machine (Windows XP laptop) for the openSUSE machine. The DHCP server works fine.
It served the laptop with two IP addresses in subnet 10.218.0/24, one for the cable and another
for the wireless.
If all else fails, recommend forcing a new lease by spoofing your MAC address. If you need instructions how to change your MAC address you’ll need to post whether you"re using ifup/ifdown or Network Manager.
I waited patiently for openSUSE release 12.3, but 12.3 still uses the
same ancient dhcpcd version 3.2.3
(software.opensuse.org:) which has the same
instablity, so I fixed the problem by installing Roy Marples’ most recent
stable release dhcpcd-5.6.7 directly fromdhcpcd.
I stopped dhcpcd and copied /usr/sbin/dhcpcd to
/usr/sbin/dhcpcd-3.2.3, just in case.
I downloaded and installed dhcpcd 5.6.7. Since /sbin/dhcpcd is just a
link to /usr/sbin/dhcpcd, the installation commands become
Getting it to work:
dhcpcd is called from /sbin/ifup-dhcp with hard coded arguments
“–netconfig -L -c /etc/sysconfig/network/scripts/dhcpcd-hook”. This
chokes dhcpcd 5.6.7 so I patched ifup-dhcp to remove them:
--- ifup-dhcp.orig 2013-03-04 22:47:37.000000000 +0100
+++ ifup-dhcp 2013-03-30 10:42:44.333228897 +0100
@@ -18,4 +18,5 @@
# Peter Poeml <firstname.lastname@example.org>, 2002-2006
+# 2012-03-30 Patched for DHCPCD version 5.6.7 Roger Price
unset POSIXLY_CORRECT ; set +o posix # we're using non-posix bash features
@@ -328,4 +329,6 @@
test "$STARTMODE" = "nfsroot" && args="-p $args"
+ # Simplify call of dhcpcd to allow use of dhcpcd 5.6.7 Roger Price
This fix is enough for me, but it would be good to have a recent, and
maintained, release of dhcpcd correctly integrated into the openSUSE
I had similar problems with dhcpcd constantly trying to renew the lease and solved it by switching to dhclient, thanks for the tip
NOTE: when changing client via sysconfig editor. For me, after changing the client and pressing the save button, the following happens
sysconfig restarts the network and after pausing at 60% progress, completes the operation
eth0 (my nic, yours could be different) is up but has no ip address
I repeated this a few times and eth0 simply will not obtain an address through this operation. I even tried to restart networking manually but still no luck.
The only way I could get this to work, was to change dhcp client in sysconfig editor, then reboot the system immediately after the operation completes. After reboot, eth0 has an address and is working properly.
It’s a very rare reboot but nonetheless I have reported it as a bug.
> The only way I could get this to work, was to change dhcp client in
> sysconfig editor, then reboot the system immediately after the operation
> completes. After reboot, eth0 has an address and is working properly.
You need to reboot because the previous daemon is running. Restarting
the service does not work because it restarts the current daemon, not
the old one.
Cheers / Saludos,
Carlos E. R.
(from 11.4, with Evergreen, x86_64 “Celadon” (Minas Tirith))