I am using my Ubuntu Server 16.10 as a hotspot and I install the desktop to use an application but doing this makes isc-dhcp-server stop working. This is the response when I get the status from it:
Nov 23 13:49:26 user sh[2394]: Not configured to listen on any interfaces!
Nov 23 13:49:26 user sh[2394]: If you think you have received this message due to a bug rather
Nov 23 13:49:26 user sh[2394]: than a configuration issue please read the section on submitting
Nov 23 13:49:26 user sh[2394]: bugs on either our web page at www.isc.org or in the README file
Nov 23 13:49:26 user sh[2394]: before submitting a bug. These pages explain the proper
Nov 23 13:49:26 user sh[2394]: process and the information we find helpful for debugging..
Nov 23 13:49:26 user sh[2394]: exiting.
Nov 23 13:49:26 user systemd[1]: isc-dhcp-server.service: Main process exited, code=exited, status
Nov 23 13:49:26 user systemd[1]: isc-dhcp-server.service: Unit entered failed state.
Nov 23 13:49:26 user systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
I know it says that it is not configured to listen to the interface but in dhcpd.conf it is.
ddns-update-style none;
authoritative;
INTERFACES="wlp2s0";
subnet 10.255.0.0 netmask 255.255.0.0 {
option routers 10.255.0.1;
option subnet-mask 255.255.0.0;
option broadcast-address 10.255.255.255;
option domain-name-servers 10.255.0.1;
range 10.255.0.25 10.255.255.240;
default-lease-time 150;
max-lease-time 1800;
}
The wireless interfaces is wlp2s0 and it still says that it is not configured to listen to the interface. I also included it in /etc/default/isc-dhcp-server
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
# Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES="wlp2s0"
Can somebody please tell me why installing ubuntu-desktop would cause this and how I can fix it. Thanks
Edit:
I ran this:
sudo dhcpd -4 wlp2s0
And in the information that came up it says:
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Can't open /var/lib/dhcp/dhcpd.leases for append.
If that is the reason why it isn't working how would I fix it?
I also found out that wlp2s0 isn't being assigned an IP even though network interfaces is correct
auto wlp2s0
iface wlp2s0 inet static
address 10.255.0.1
netmask 255.255.0.0
sudo service network-manager status