我的 dhcpd 正在从同一台 (linux-ubuntu-16.04) 客户端上的同一 MAC 地址获取 2 个不同 IP 的 DHCPREQUEST 包。摘自系统日志:
Jun 20 09:56:13 infranet dhcpd: DHCPREQUEST for 10.0.0.227 from 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 09:56:13 infranet dhcpd: DHCPACK on 10.0.0.227 to 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 09:59:41 infranet dhcpd: DHCPREQUEST for 10.0.0.201 from 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 09:59:41 infranet dhcpd: DHCPACK on 10.0.0.201 to 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 10:00:28 infranet dhcpd: DHCPREQUEST for 10.0.0.227 from 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 10:00:28 infranet dhcpd: DHCPACK on 10.0.0.227 to 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 10:04:05 infranet dhcpd: DHCPREQUEST for 10.0.0.201 from 0c:c4:7a:91:f6:da (B3) via eth0
Jun 20 10:04:05 infranet dhcpd: DHCPACK on 10.0.0.201 to 0c:c4:7a:91:f6:da (B3) via eth0
我发现这个帖子https://stackoverflow.com/questions/26168412/dhcp-assigns-2-ips-to-1-mac-address虽然没有发布真正的解决方案,但其他方面看起来与我遇到的情况非常相似。获取这两个 IP 的客户端有
auto eno1
iface eno1 inet dhcp
在 /etc/network/interfaces 中,并且通过 /etc/NetworkManager/NetworkManager.conf 禁用网络管理器
managed=false
这是 dhcp 还是客户端的问题?我该如何找出原因?我猜是客户端的问题,但我不知道机器上做了哪些更改才导致这种情况。