Search code examples
configuration-filesdhcp

Isc-dhcp-server not starting error: not configured to listen to any interfaces


I have installed Isc-dhcp-server and configured the files accordingly still it is showing the error that its not configured to listen to any interfaces. i have ubuntu 17.04 64 bit

Interface file :

auto lo
iface lo inet loopback
iface enp2s0 inet static
address 10.90.90.5
netmask 255.255.255.0
gateway 10.90.90.1
broadcast 10.90.90.255
dns-nameservers 8.8.8.8
up service isc-dhcp-server restart

in /etc/default/isc-dhcp-server file

   INTERFACES="enp2s0"

/etc/dhcp/dhcpd.conf file:

 subnet 10.90.90.0 netmask 255.255.255.0 {
      range 10.90.90.10 10.90.90.20;
      default-lease-time 600;
      max-lease-time 7200;
      option routers 10.90.90.1;
    }

Error i'm getting :

error


Solution

  • The problem was my isc-dhcp-server configuration file was getting reset to original file with blank interfaces. I did re-installation of ubuntu and it worked all well.