CentOS 8
Sponsored Link

Dnsmasq : Configure DHCP Server2019/10/03

 
Enable integrated DHCP feature in Dnsmasq and Configure DHCP Server.
[1] Configure Dnsmasq for DHCP service.
[root@dlp ~]#
vi /etc/dnsmasq.conf
# line 158: add ranges of IP address to lease and term of lease

dhcp-range=10.0.0.200,10.0.0.250,12h
# line 332: add entries for Gateway, NTP, DNS, Subnetmask

dhcp-option=option:router,10.0.0.1
dhcp-option=option:ntp-server,10.0.0.10
dhcp-option=option:dns-server,10.0.0.10
dhcp-option=option:netmask,255.255.255.0
[root@dlp ~]#
systemctl restart dnsmasq

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

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

success
[3]
Matched Content