这文档ISC 的dhcpd.conf
示例(为简洁起见被截断):
failover peer "foo" {
primary;
address anthrax.rc.example.com;
port 519;
peer address trantor.rc.example.com;
peer port 520;
}
它进一步将该address
领域解释为:
地址语句声明服务器应侦听来自其故障转移对等方的连接的 IP 地址或 DNS 名称,以及用于 DHCP 故障转移协议服务器标识符的值。因为该值用作标识符,所以不能省略。
如果我尝试将其配置为类似于以下内容的 IPv6 地址:
failover peer "foo" {
...
address 2000:dead::beef;
# - OR -
address [2000:dead::beef];
...
}
v4 守护进程拒绝启动:
Primary dhcpd[61664]: /etc/dhcp/dhcpd.conf line 41: semicolon expected.
Primary dhcpd[61664]: peer address 2000:
Primary dhcpd[61664]: ^
Primary dhcpd[61664]: Configuration file errors encountered -- exiting
...
Primary dhcpd[63231]: /etc/dhcp/dhcpd.conf line 41: [ (91): expecting IP address or hostname
Primary dhcpd[63231]: peer address [
Primary dhcpd[63231]: ^
Primary dhcpd[63231]: Configuration file errors encountered -- exiting
在 v4 守护程序配置中配置 v6 地址是否非法?