即使主机closures,也不希望isc-dhcp重新分配保留的IP地址

我已经通过dhcp将ip分配给了一些系统,然后在dhcpd.conf中进行了保留,以便这些ip不被分配给其他的mac。 但是当保留ip的系统离线,另一个客户端发出dhcp请求时,保留的ip被分配给它。 我的dhcpd.conf如下。

ddns-update-style interim; ignore client-updates; subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.2 10.10.10.20 ; option routers 10.10.10.1; option subnet-mask 255.255.255.0; option time-offset -18000; max-lease-time 10000000; option domain-name "inclined"; option broadcast-address 10.10.10.255; next-server 10.10.10.1; host inc10 { hardware ethernet 00:50:56:29:E8:F7 ; fixed-address 10.10.10.2 ; } host inc12 { hardware ethernet 00:0C:29:81:A5:C1 ; fixed-address 10.10.10.3 ; } host inc23 { hardware ethernet 00:0C:29:86:A6:72 ; fixed-address 10.10.10.4 ; } host inc34 { hardware ethernet 00:0C:29:92:17:E3 ; fixed-address 10.10.10.5 ; } } 

假设主机inc34closures,另一个新的主机请求一个ip,然后10.10.10.5被分配给它。 我不希望DHCP向其他主机重新分配保留的IP。 任何build议,非常感谢。 谢谢

答案是把静态IP的机器的IP放在分配的范围之外 – 即固定地址不需要在“范围”池中。

在你的情况下,最简单的解决scheme可能是改变范围

范围10.0.0.6 10.0.0.20;