[systemd-devel] Cannot acquire DHCP lease

Jan Janssen medhefgo at web.de
Thu Feb 26 10:31:37 PST 2015


Hi,
since commit commit 5bac5235934fabe5a3e6a9d47f4812f81034c427, networkd 
cannot acquire DHCP leases on my router if I dual boot with windows.

It seems to be that my router is borked since I do get leases after 
resetting it to factory defaults, but once booting into the other OS, 
DHCP doesn't work anymore (whichever OS acquired the lease first wins 
and can still get leases after reboots).
I never used to have this issue until I switched to a new computer with 
a different network card (RTL-8110SC/8169SC). dhclient/dhcpcd also have 
this issue for me, but afaik they can change the clientid method to be 
used, though I never got to use it myself because networkd's 
implementation just worked for me, until it broke :(

The debug logs don't show anything interesting; it's just stuck in an 
DHCP discover loop.

Jan

----

5bac5235934fabe5a3e6a9d47f4812f81034c427 is the first bad commit
commit 5bac5235934fabe5a3e6a9d47f4812f81034c427
Author: Tom Gundersen <teg at jklm.no>
Date:   Thu Jan 22 00:53:16 2015 +0100

     sd-dhcp-client: use RFC4361-complient ClientID by default

     In addition to the benefits listed in the RFC, this allows DHCP to 
work also in
     case several interfaces share the same MAC address on the same link 
(IPVLAN).

     Note that this will make the ClientID (so probably the assigned IP 
address)
     change on upgrades. If it is desired to avoid that we would have to 
remember and
     write back the ID (which the library supports, but networkd 
currently does not).

:040000 040000 0f27d5041b1050e580a329c8c23fd12e1e2c552b 
f1cf96e838f0f4d91c774c3d82346b2ad94465ac M      src


More information about the systemd-devel mailing list