ISC DHCP Server - Issues - Looking for guidance

Hello,

I’m looking to make a Mini’s Form GK41 into a DHCP server for my home network.

When I start the service and check status, this is the return


× isc-dhcp-server.service - ISC DHCP IPv4 server
Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2023-11-18 15:24:29 EST; 4s ago
Docs: man:dhcpd(8)
Process: 2070 ExecStart=/bin/sh -ec CONFIG_FILE=/etc/dhcp/dhcpd.conf; if [ -f /etc/ltsp/dhcpd.conf ]; then CONFIG_FILE=/etc/ltsp/dhcpd.conf; fi; [ -e /var/lib/dhcp/dhcpd.leases ] || touch /var/lib/dhcp/dhcpd.leases; chown root:dhcpd /var/lib/dhcp /va>
Main PID: 2070 (code=exited, status=1/FAILURE)
CPU: 16ms

Looking for guidance on who to resolve the errors and have the server active.

Thank You for your time

I have also set the the “isc-dhcp-server” file in default to be as shown

Defaults for isc-dhcp-server (sourced by /etc/init.d/isc-dhcp-server)

Path to dhcpd’s config file (default: /etc/dhcp/dhcpd.conf).

#DHCPDv4_CONF=/etc/dhcp/dhcpd.conf
#DHCPDv6_CONF=/etc/dhcp/dhcpd6.conf

Path to dhcpd’s PID file (default: /var/run/dhcpd.pid).

#DHCPDv4_PID=/var/run/dhcpd.pid
#DHCPDv6_PID=/var/run/dhcpd6.pid

Additional options to start dhcpd with.

Don’t use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead

#OPTIONS=“”

On what interfaces should the DHCP server (dhcpd) serve DHCP requests?

Separate multiple interfaces with spaces, e.g. “eth0 eth1”.

INTERFACESv4=“enp2s0”
INTERFACESv6=“”

With enp2s0 ethernet port 1.

I have installed ISC-DHCP-Server and configured the dhcpd.conf file as shown below

authoritative;

default-lease-time 86400;
max-lease-time 86400;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option domain-name ‘DHCPServer.local’;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.200;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.50;
}

Firstly, ISC DHCP is deprecated in favour of Kea since 2022 so you should migrate or at least use something else. It doesn’t necessarily have to be Kea.

While this for OpenBSD’s dhcpd it more or less accepts the same syntax

# Set default lease to 23h (time to refresh)
default-lease-time 82800;

# Set default lease deadline to 24h
max-lease-time 86400;

# Set default domain-name
option domain-name "foobar.net";

# Set nameservers
option domain-name-servers 192.168.8.1;

# This is the main DHCP server
authoritative;

# Deny duplicated leases
#deny duplicates;

# LAN
	subnet 192.168.8.0 netmask 255.255.255.0 {
		option routers 192.168.8.1;
		option broadcast-address 192.168.8.255;
		range 192.168.8.220 192.168.8.245;
	}

It’s been a while since I used ISC’s dhcpd but I think the syntax for testing your config is dhcpd -t -cf /path/to/dhcpd.conf

Thank you for the help.

I have moved on from ISC to Pi Hole for this.