DHCP 服务器故障转移与动态 bootp 范围声明

DHCP 服务器故障转移与动态 bootp 范围声明

我正在尝试为在 Linux 上运行的具有动态 bootp 范围声明的 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;
  }
}

但是守护进程重新加载失败,并显示以下系统日志错误消息:

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 似乎已关闭/无法访问。

任何建议将不胜感激。

答案1

从您自己的日志输出:

故障转移协议本身不允许动态 bootp - 这不是 ISC DHCP 服务器特有的限制。请不要要求我为此辩护,除非您已经阅读并真正尝试理解故障转移协议规范。

故障转移协议不支持 bootp 故障转移,因此它不限于 ISC DHCP 服务器。

阅读https://datatracker.ietf.org/doc/html/draft-ietf-dhc-failover-12#page-42提供了更多见解。

相关内容