我已经通过dhcp将ip分配到一些系统,然后在dhcpd.conf中输入以保留这些ip,这样就不会将这些ip分配给其他macs。但是,当具有保留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 ;
}
}假设主机inc34关闭,另一个新主机请求ip,则10.10.10.5被分配给它。我不希望dhcp将保留的ip重新分配给其他主机。任何建议都是非常感谢的。谢谢
发布于 2014-05-02 06:34:49
答案将是将静态IP的机器的IP放在分配的范围之外(即固定地址不需要在“范围”池中)。
在您的情况下,最简单的解决方案可能是将范围更改为
范围10.0.0.6 10.0.20;
https://serverfault.com/questions/592648
复制相似问题