我们有大量的客户端连接到我们的DHCP机器。 我们想把它们中的一部分分配给一个不同的IP块,这个IP块的路由优先级较低。 每一次DHCP租约续约,我们都想检查一个数据库,并决定我们要分配一个客户的IP块。 有一种方法可以让DHCP服务器执行脚本,查看数据库,或者在决定在哪个池中分配哪个地址时执行一些dynamic代码? 每个客户端都由option82唯一标识,即“DHCP中继代理信息选项”。
或者更一般地说,是否需要指定当DHCP服务器分配地址时客户端应该使用的广播地址?
我如何configurationISC DHCP服务器为所有客户端的无限租赁时间? 男子dhcpd: 租约长度DHCP租约可以被分配几乎任何长度从零秒到无限。 对于任何给定的子网或对于任何给定的安装,什么租约长度是有意义的将取决于所服务的主机的种类而变化。 但是dhcpd完全不能使用零租约时间值: ddns-update-style none; #option domain-name "dobisel.com"; option domain-name-servers 8.8.8.8,8.8.4.4; default-lease-time 0; <—- here max-lease-time 0; <—– here authoritative; log-facility local7; subnet 192.168.11.0 netmask 255.255.255.240 { range 192.168.11.2 192.168.11.14; option routers 192.168.11.1; option broadcast-address 192.168.11.15; option subnet-mask 255.255.255.240; }
我有一个远程客户机发送DHCPDISCOVER的。 服务器用DHCPOFFER响应,但没有DHCPACK。 大约每30秒从同一主机重复一次。 有什么我可以做远程或我需要让某人重新启动吗? 这是在数据中心,所以我可能要去那里做! 感谢您的build议。 我已经把所有的机器重新启动了,但是我仍然有问题。 我认为我的configuration有问题。 这看起来正确吗? # # /etc/dhcpd.conf for primary DHCP server # authoritative; ddns-update-style none; deny duplicates; default-lease-time 600; max-lease-time 3600; # Our fixed hosts host host2 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address xxx202; } host host3 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address xxx203; } host host4 { hardware ethernet xx:xx:xx:xx:xx:xx; fixed-address […]