I'm having an issue with isc-dhcp-server. When I reboot I can see that it loads because it says "Starting LSB: DHCP server ...". However when trying to connect a PXE node to the server it does not work and I need to exectute "sudo service isc-dhcp-server restart". I have another PXE server that I've set up successfully that, for whatever reason, does not exhibit this issue. This is all on Raspbian Jessie. I also want to add that upon installation of isc-dhcp-server I get:
Job for isc-dhcp-server.service failed. See 'systemctl status isc-
dhcp-server.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Which is strange because in the past I've never had problems installing isc-dhcp-server. And I'm talking a week maybe two weeks in the past. So it seems like some sort of package update has borked it?
This the output of the command requested in the comments.
● isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server)
Active: failed (Result: exit-code) since Mon 2017-07-31 07:59:29 EDT;
17min ago
Jul 31 07:59:27 raspberrypi dhcpd[11899]:
Jul 31 07:59:27 raspberrypi dhcpd[11899]: No subnet declaration for
eth0 (10.0.0.73).
Jul 31 07:59:27 raspberrypi dhcpd[11899]: ** Ignoring requests on
eth0. If this is not what
Jul 31 07:59:27 raspberrypi dhcpd[11899]: you want, please write a
subnet declaration
Jul 31 07:59:27 raspberrypi dhcpd[11899]: in your dhcpd.conf file for
the network segment
Jul 31 07:59:29 raspberrypi isc-dhcp-server[11891]: Starting ISC DHCP
server: dhcpdcheck syslog for diagnostics. ... failed!
Jul 31 07:59:29 raspberrypi isc-dhcp-server[11891]: failed!
Jul 31 07:59:29 raspberrypi systemd[1]: isc-dhcp-server.service:
control process exited, code=exited status=1
Jul 31 07:59:29 raspberrypi systemd[1]: Failed to start LSB: DHCP
server.
Jul 31 07:59:29 raspberrypi systemd[1]: Unit isc-dhcp-server.service
entered failed state.
Can someone please help? Thanks!
sudo systemctl -l isc-dhcp-server
say? Does the ISC DHCP server stop because it cannot find any subnets (yet) to serve?unknown operation 'isc-dhcp-server'
. Did you meansudo systemctl status isc-dhcp-server
? Because that doesn't give much information other than the service failed to start. Also, when installing the program i getJob for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details. invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
sudo systemctl status -l isc-dhcp-server
. This gives the status of the service, as well as the messages it logged.Jul 31 07:59:27 raspberrypi dhcpd[11899]: Jul 31 07:59:27 raspberrypi dhcpd[11899]: No subnet declaration for eth0 (10.0.0.73). Jul 31 07:59:27 raspberrypi dhcpd[11899]: ** Ignoring requests on eth0. If this is not what Jul 31 07:59:27 raspberrypi dhcpd[11899]: you want, please write a subnet declaration Jul 31 07:59:27 raspberrypi dhcpd[11899]: in your dhcpd.conf file for the network segment Jul 31 07:59:29 raspberrypi isc-dhcp-server[11891]: Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed! Jul 31 07:59:29 raspberrypi isc-dhcp-server[11891]: failed!