DHCP 租约文件中存在重复租约

DHCP 租约文件中存在重复租约

有时我的/tmp/dhcpd.LAN.leases文件中会有两到三次相同的信息。在这个例子中,这不是什么问题,但如果有数百个不同的 IP 地址,就会出现问题。

以下是我的租赁文件摘录:

正确数据:

lease 192.168.20.4 {
  starts 5 2017/10/06 09:00:44;
  ends 5 2017/10/06 09:10:44;
  cltt 5 2017/10/06 09:00:44;
  binding state active;
  next binding state free;
  hardware ethernet 8c:4d:54:50:18:13;
  client-hostname "alexandre-laptop";
}
lease 192.168.20.2 {
  starts 5 2017/10/06 09:04:43;
  ends 5 2017/10/06 09:14:43;
  cltt 5 2017/10/06 09:04:43;
  binding state active;
  next binding state free;
  hardware ethernet 01:23:f2:51:0f:36;
  uid "\001\000\023\362\001\0170";
}

错误数据:

lease 192.168.20.4 {
  starts 5 2017/10/06 09:04:57;
  ends 5 2017/10/06 09:14:57;
  cltt 5 2017/10/06 09:04:57;
  binding state active;
  next binding state free;
  hardware ethernet 8c:4d:54:50:18:13;
  client-hostname "alexandre-laptop";
}
lease 192.168.20.4 {
  starts 5 2017/10/06 09:04:57;
  ends 5 2017/10/06 09:14:57;
  cltt 5 2017/10/06 09:04:57;
  binding state active;
  next binding state free;
  hardware ethernet 8c:4d:54:50:18:13;
  client-hostname "alexandre-laptop";
}
lease 192.168.20.2 {
  starts 5 2017/10/06 09:09:44;
  ends 5 2017/10/06 09:19:44;
  cltt 5 2017/10/06 09:09:44;
  binding state active;
  next binding state free;
  hardware ethernet 01:23:f2:51:0f:36;
  uid "\001\000\023\362\001\0170";
}

此外,有时 MAC 地址不正确,我不知道这是否有帮助。供参考,该/var/lib/dhcpd/dhcpd.leases文件有相同的错误,并且配置文件中没有添加任何特殊内容。有人已经遇到过这个问题吗?

相关内容