建多个保留
• 在/etc/dhcpd.conf文件中加入host语句
ddns-update-style interim;
ignore client-updates;
subnet 192.168.149.0 netmask 255.255.255.0 {
option routers 192.168.149.129;
option subnet-mask 255.255.255.0;
option domain-name-servers 166.111.219.129;
range dynamic-bootp 192.168.149.50 192.168.149.60;
default-lease-time 21600;
max-lease-time 43200;
host dhcp-client {
hardware ethernet 00:0c:29:d9:2e:b9;
fixed-address 192.168.149.192;
}
host dhcp-client3 {
hardware ethernet 00:0c:29:d9:2e:b3;
fixed-address 192.168.149.193;
}
转载于:https://blog.51cto.com/sngyqd/394685