centos7.6 DHCP服務(wù)
1.安裝dhcp服務(wù)
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服務(wù)
4.防火墻放行
標(biāo)簽: