centos7.6 DHCP服务
1.安装dhcp服务
2.修改/etc/dhcp/dhcpd.conf文件
default-lease-time 600;
max-lease-time 7200;
option domain-name "example.org";
option domain-name-server ns1.example;
subnet 192.168.128.0 netmask 255.255.255.0{
range 192.168.128.30 192.168.128.60;
range 192.168.128.100 192.168.128.200;
option routers 192.168.100.254
}
3.重启dhcpd服务
4.防火墙放行