Configuring DHCP Server on Fedora

Install and Configure DHCP. On this example, it shows only for IPv4 configuration.

dnf -y install dhcp-server

cat > /etc/dhcp/dhcpd.conf << EOF
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp-server/dhcpd.conf.example
# see dhcpd.conf(5) man page
#

# Added by Jove
# default lease time
default-lease-time 600;

# max lease time
max-lease-time 7200;

# specify network address and subnetmask
subnet 192.168.10.0 netmask 255.255.255.0 {
# specify the range of lease IP address
range dynamic-bootp 192.168.10.100 192.168.10.200;
# specify broadcast address
option broadcast-address 192.168.10.255;
# specify gateway
option routers 192.168.10.254;
}
EOF

systemctl enable --now dhcpd

If Firewalld is running, allow DHCP service. DHCP Server uses [67/UDP].

firewall-cmd --add-service=dhcp
firewall-cmd --runtime-to-permanent

It's possible to see leased IP address in the file below from DHCP Server to DHCP Clients.

cat /var/lib/dhcpd/dhcpd.leases