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