Kea DHCP 错误:地址 192.168.1.2 的保留与现有租约地址冲突 - 如何清除租约?

问题描述 投票:0回答:1

我正在运行 ISC Kea DHCP 服务器,并为 MAC

192.168.1.2
预留了
aa.bb.cc.dd.ee.ff

客户端成功获取了 IP

192.168.1.2
,但重新启动后,它不再获取 IP,并且 Kea 日志文件状态为
conflicting reservation for address 192.168.1.2 with existing lease Address: 192.168.1.2
,因此看起来它无法识别
DHCPREQUEST
来自其 MAC IP 已保留。 在我看来这可能是一个错误。

如何从租赁列表中“清除”该租赁?

ip allocation dhcp
1个回答
0
投票

当没有客户预留时,Kea 将从池中的任何位置分配一个地址。 Kea 不会检查所选地址是否未被保留。为了解决这个问题,池范围和保留地址不得重叠。例如:

    {
        "subnet": "10.3.0.0/16",
        "pools": [ { "pool": "10.3.64.0 - 10.3.95.252" } ],
        "reservations": [
            { "hw-address": "xx:xx:xx:xx:xx:xx", "ip-address": "10.3.0.1" },
            { "hw-address": "xx:xx:xx:xx:xx:xx", "ip-address": "10.3.1.1" },
            { "hw-address": "xx:xx:xx:xx:xx:xx", "ip-address": "10.3.2.1" }
        ]
    },
© www.soinside.com 2019 - 2024. All rights reserved.