default-lease-time 600; max-lease-time 7200; deny unknown-clients; #禁止未知客戶端獲取IP地址 option domain-name "test.com"; option domain-name-servers 192.168.182.1; subnet 192.168.182.0 netmask 255.255.255.0 { option routers 192.168.182.1; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.182.200 192.168.182.254; } #下面算是一個基於MAC地址的白名單,在名單中的MAC址的網卡能夠獲取到由DHCP服務器分發的IP地址 group { host foo3 { hardware ethernet 00:c0:c3:11:90:23; } host foo4 { hardware ethernet 00:c0:c3:cc:0a:8f; } host test { hardware ethernet 00:0c:29:83:00:c5; } }