我正在尝试为在具有动态引导范围声明的 Linux 上运行的 ISC dhcp 服务器配置故障转移。
配置文件看起来像这样(我首先在本地尝试,因此是私有范围):
authoritative;
log-facility local7;
shared-network "vm-net" {
failover peer "failover-partner" {
secondary;
address 192.168.122.4;
port 647;
peer address 192.168.122.3;
peer port 647;
max-response-delay 60;
max-unacked-updates 10;
load balance max seconds 3;
}
subnet 192.168.122.0 netmask 255.255.255.128 {
pool {
failover peer "failover-partner";
max-lease-time 1800;
range 192.168.122.0 192.168.122.127;
}
deny unknown-clients;
}
subnet 192.168.122.128 netmask 255.255.255.128 {
pool {
failover peer "failover-partner";
max-lease-time 1800;
range dynamic-bootp 192.168.122.128 192.168.122.255;
}
deny unknown-clients;
}
}
但是,守护程序重新加载失败并显示以下 syslog 错误消息:
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: range declarations where there is a failover
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: peer in scope. If you wish to declare an
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: address range from which dynamic bootp leases
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: can be allocated, please declare it within a
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: pool declaration that also contains the "no
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: failover" statement. The failover protocol
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: itself does not permit dynamic bootp - this
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: is not a limitation specific to the ISC DHCP
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: server. Please don't ask me to defend this
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: until you have read and really tried to understand
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: the failover protocol specification.
Dec 7 14:59:07 dhcpmaster1 dhcpd[4397]: Configuration file errors encountered -- exiting
这是否意味着 ISC dhcp 协议不支持动态范围的故障转移?或者有没有其他方法可以配置它?
我在手册页中找不到任何进一步的信息,并且 isc.org 似乎已关闭/无法访问。
任何建议将不胜感激。