Fedora 31
Sponsored Link

DHCP : Configure DHCP Server
Configure DHCP ( Dynamic Host Configuration Protocol ) Server to assign IP addresses to client hosts in local network.
[1] Install and Configure DHCP. On this example, it shows only for IPv4 configuration.
[root@dlp ~]#
dnf -y install dhcp-server
[root@dlp ~]#
vi /etc/dhcp/dhcpd.conf
# create new

# specify domain name

option domain-name     "srv.world";
# specify DNS server's hostname or IP address

option domain-name-servers     dlp.srv.world;
# default lease time

default-lease-time 600;
# max lease time

max-lease-time 7200;
# this DHCP server to be declared valid

# specify network address and subnetmask

subnet netmask {
    # specify the range of lease IP address
    range dynamic-bootp;
    # specify broadcast address
    option broadcast-address;
    # specify gateway
    option routers;

[root@dlp ~]#
systemctl enable --now dhcpd

[2] If Firewalld is running, allow DHCP service. DHCP Server uses [67/UDP].
[root@dlp ~]#
firewall-cmd --add-service=dhcp --permanent

[root@dlp ~]#
firewall-cmd --reload

Matched Content