Package: isc-dhcp-client Version: 4.4.1-2 Severity: important Dear Maintainer,
dhclient failed to renew address or set routes for me. I found the following in syslog: Nov 24 19:08:41 orion dhclient[1840]: Can't allocate interface enx0015fflease {#012 interface . Nov 24 19:08:41 orion dhclient[1840]: Nov 24 19:08:41 orion dhclient[1840]: If you think you have received this message due to a bug rather Nov 24 19:08:41 orion dhclient[1840]: than a configuration issue please read the section on submitting Nov 24 19:08:41 orion dhclient[1840]: bugs on either our web page at www.isc.org or in the README file Nov 24 19:08:41 orion dhclient[1840]: before submitting a bug. These pages explain the proper Nov 24 19:08:41 orion dhclient[1840]: process and the information we find helpful for debugging. Nov 24 19:08:41 orion dhclient[1840]: Nov 24 19:08:41 orion dhclient[1840]: exiting. I recognized the "enx0015ff..." string as part of the name that a USB LTE modem I use gets, when it is attached to the system. It was not attached at the time dhclient was failing to work. So then I looked in /var/lib/dhcp/dhclient.leases and found this section: lease { interface "enx0015fflease { interface "wls1"; fixed-address 172.16.0.70; option subnet-mask 255.255.254.0; option routers 172.16.0.1; option dhcp-lease-time 86400; option dhcp-option-overload 3; option dhcp-message-type 5; option domain-name-servers 172.16.0.1; option dhcp-server-identifier 172.16.0.1; renew 4 2019/11/21 08:00:31; rebind 4 2019/11/21 18:23:18; expire 4 2019/11/21 21:23:18; } which to me appears to have bad syntax in that the curly braces do not match and there are two interface names specified for one lease block. When I deleted this bad block, dhclient worked fine again. I had not previously made any manual modifications to the dhclient.leases file. Kind regards, Michael Redman -- System Information: Debian Release: 10.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-6-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages isc-dhcp-client depends on: ii debianutils 4.8.6.1 ii iproute2 4.20.0-2 ii libc6 2.28-10 ii libdns-export1104 1:9.11.5.P4+dfsg-5.1 ii libisc-export1100 1:9.11.5.P4+dfsg-5.1 Versions of packages isc-dhcp-client recommends: ii isc-dhcp-common 4.4.1-2 Versions of packages isc-dhcp-client suggests: ii avahi-autoipd 0.7-4+b1 pn isc-dhcp-client-ddns <none> pn resolvconf <none> -- no debconf information