centos
yum install dhcp -y
cat /etc/dhcp/dhcpd.conf
default-lease-time 7200;
max-lease-time 14400;
subnet 172.16.26.0 netmask 255.255.0.0 {
option routers 172.16.0.1;
range 172.16.26.20 172.16.26.49;
}
systemctl start dhcpd
systemctl enable dhcpd