[Bug 1772941] Re: isc-dhcp-server does not listen network interfaces

Wladimir Mutel mwg at mwg.dp.ua
Sun Jun 10 11:22:18 UTC 2018


On my system (Ubuntu 18.04 configured with netplan.io and systemd-networkd where possible), dhcpd is configured by default, so it just enumerates currently-available IP subnets on interfaces to determine on which interface to listen.
The only interface it is normally listening on my system is br0, which currently includes only wlan0 interface managed by hostapd.
On one reboot I had a race condition between dhcpd and hostapd : on its startup, hostapd did 'country update' on wlan0 which temporarily brought it down, and br0 went down as well, then systemd-networkd temporarily removed its IP address. Right at this moment, dhcpd had begun to start, looking matching IPs on interfaces and failing to find any of them. After that I got working hostapd (WiFi network visible to clients), but clients unable to configure their IPs after WiFi authentication.

So, yes, 'sleep 30' can be a solution, but it is better to implement
some dependency on the systemd level. Like, start dhcpd not earlier than
hostapd is started and operating. Or maybe start hostapd not earlier
than dhcpd has found its subnet and interface (if dhcpd is capable to
survive through temporary drop-down of its interface during normal
operation).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1772941

Title:
  isc-dhcp-server does not listen network interfaces

Status in isc-dhcp package in Ubuntu:
  Confirmed

Bug description:
  System: Ubuntu 16.04.4 LTS x64 XFCE desktop
  Version of package: isc-dhcp-server
  Uname: 4.4.0-127-generic
  Result spected: service isc-dhcp-server status returning that service is active, running and OK.
  Network interfaces: 2, enp0s3 (static, main), en0s8 not configured yet.
  Current result:
  service isc-dhcp-server status returns an error message, which says that there is no network interface listening.

  In /etc/default/isc-dhcp-server I have configured this line:
  INTERFACES="enp0s3" but still giving the same error. Links to an ask ubuntu question:https://askubuntu.com/questions/536531/dhcp-server-wont-start-gives-not-configured-to-listen-on-any-interfaces-eve

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/isc-dhcp/+bug/1772941/+subscriptions



More information about the foundations-bugs mailing list