1.查看服务机网络号如下图所示,网络号为192.168.218.0
2.查看服务机DNS地址如下图所示,DNS地址为192.168.218.2
3.修改服务机DHCP服务配置文件如下
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.example
# see dhcpd.conf(5) man page
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.218.0 netmask 255.255.255.0 {
range 192.168.218.137 192.168.218.145;
option routers 192.168.218.2;
option domain-name-servers 192.168.218.2;
}
4.重启DHCP服务
systemctl restart dhcpd