我使用 Centos-7 服务器来分配 MAC/IP。但有时用户会获得其他 IP 地址。
我的dhcpd.conf
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.10 192.168.1.254;option domain-name "dhcp.local";option routers 192.168.1.1; option broadcast-address 192.168.1.255; max-lease-time 7200;option domain-name-servers 192.168.1.1;}
include "/etc/dhcp/dhclient.d/dhcp_clients.conf";
allow booting;
allow bootp;
option option-128 code 128 = string;
option option-129 code 129 = text;
next-server 192.168.10.1;
filename "pxelinux.0";
在/etc/dhcp/dhclient.d/dhcp_clients.conf
我有
host User.userlaptop {hardware ethernet 00:11:22:33:44:55;fixed-address 192.168.1.34;}
这里发生了什么?为什么它行为不端?
提前致谢