Reputation: 498
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
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
INTERFACES="enp2s0"
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;
}
Upvotes: 3
Views: 9139
Reputation: 593
A bit late but :
isc-dhcp-server
as configuration file in /etc/default
folder named isc-dhcp-server
is this file at the very last line you must set the interface wich isc-dhcp-server
will listen :
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACESv4="eth0 eth1"
INTERFACESv6=""
Try with INTERFACESv4
key.
Then restart the server.
server isc-dhcp-server restart
Upvotes: 2
Reputation: 1
Well it seems like your interface enp2s0
isn't up. You can check this by using ifconfig
.
You can fix it by putting: auto enp2s0
under auto lo
in /etc/network/interfaces
Upvotes: 0
Reputation: 498
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.
Upvotes: 0