dhcpd.conf文件配置示例

centos7

[root@192 ~]# cat /etc/dhcp/dhcpd.conf 

# dhcpd.conf
ddns-update-style none;
ignore client-updates;


subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.200 192.168.0.230;
  option domain-name-servers 192.168.0.1;
  option domain-name "test.local";
  option routers 192.168.0.1;
  option subnet-mask 255.255.255.0;
  default-lease-time 43200;
  max-lease-time 86400;

}


加在上面大括号内

host i-it {
	#主机声明
		hardware ethernet 00:0C:29:30:2D:D7;	#保留主机的MAC地址
		fixed-address 10.204.10.204;	#指定保留的IP地址
		}

你可能感兴趣的:(Linux)