Sample Header Ad - 728x90

cant start dhcp server

0 votes
1 answer
177 views
Using debian, and installed *isc-dhcp-server* via the following command sudo apt -y install isc-dhcp-server After agreeing to any dependencies, the follow error message was thrown Job for isc-dhcp-server.service failed because the control process exited with error code. See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details. Ive restarted my machine, and also tried to run the followng sudo service isc-dhcp-server start This just re-prints the same error message as above. The error asks to run **systemctl status isc-dhcp-server.service** which returns ● isc-dhcp-server.service - LSB: DHCP server Loaded: loaded (/etc/init.d/isc-dhcp-server; generated) Active: failed (Result: exit-code) since Mon 2024-03-11 00:33:46 GMT; 12min ago Docs: man:systemd-sysv-generator(8) Process: 2980 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE) **sudo journalctl -u isc-dhcp-server.service** returns isc-dhcp-server: Launching IPv4 server only. dhcpd: /etc/dhcp/dhcpd.conf line 13: subnet 192.168.2.101 netmask 255.255.255.0: bad subnet number/mask combination. dhcpd: subnet 192.168.2.101 netmask 255.255.255.0 dhcpd: ^ dhcpd: Configuration file errors encountered -- exiting dhcpd: dhcpd: If you think you have received this message due to a bug rather dhcpd: than a configuration issue please read the section on submitting isc-dhcp-server: dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf. isc-dhcp-server: The error was: dhcpd: bugs on either our web page at www.isc.org or in the README file dhcpd: before submitting a bug. These pages explain the proper dhcpd: process and the information we find helpful for debugging. dhcpd: exiting. dhcpd: Internet Systems Consortium DHCP Server 4.4.1 isc-dhcp-server: Internet Systems Consortium DHCP Server 4.4.1 isc-dhcp-server: Copyright 2004-2018 Internet Systems Consortium. isc-dhcp-server: All rights reserved. isc-dhcp-server: For info, please visit https://www.isc.org/software/dhcp/ dhcpd: Copyright 2004-2018 Internet Systems Consortium. dhcpd: All rights reserved. dhcpd: For info, please visit https://www.isc.org/software/dhcp/ dhcpd: /etc/dhcp/dhcpd.conf line 13: subnet 192.168.2.101 netmask 255.255.255.0: bad subnet number/mask combination. dhcpd: subnet 192.168.2.101 netmask 255.255.255.0 isc-dhcp-server: /etc/dhcp/dhcpd.conf line 13: subnet 192.168.2.101 netmask 255.255.255.0: bad subnet number/mask combination. isc-dhcp-server: subnet 192.168.2.101 netmask 255.255.255.0 isc-dhcp-server: ^ isc-dhcp-server: Configuration file errors encountered -- exiting MY MACHINE CONFIG FILES ----------------------- sudo nano /etc/dhcp/dhcpd.conf ... # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers 8.8.8.8; ... subnet 192.168.2.101 netmask 255.255.255.0 { option routers pepper.spices.org; } ... authoritative; ... And sudo /etc/default/isc-dhcp-server ... DHCPDv4_CONF=/etc/dhcp/dhcpd.conf ... INTERFACESv4="eth0" ...
Asked by IvanP (1 rep)
Mar 11, 2024, 12:55 AM
Last activity: Mar 11, 2024, 08:42 AM