Arp 回复错误的 IP - Ubuntu 20.04

Arp 回复错误的 IP - Ubuntu 20.04

这个系统是Ubuntu 20.04。它有一个禁用的无线接口。它使用板载以太网端口。我有一台 IP 为 10.0.0.142 的机器。它会回复本地网络 10.0.0.142 和 10.0.0.20 上的 ping。

这是 ifconfig 和 tcpdump 的输出。您可以看到此框中的 arp 回复显示其 10.0.0.20。 ifconfig 显示其唯一配置为 10.0.0.142。

这会导致各种网络问题。

有谁知道为什么会发生这种情况?

$ ifconfig | more
enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.0.0.142  netmask 255.255.255.0  broadcast 10.0.0.255
        ether 60:44:55:66:6e:c2  txqueuelen 1000  (Ethernet)
        RX packets 24993370  bytes 18152361859 (18.1 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5264383  bytes 582006728 (582.0 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 37817  bytes 3451024 (3.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37817  bytes 3451024 (3.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
$ sudo tcpdump -i enp3s0 host 10.0.0.20
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp3s0, link-type EN10MB (Ethernet), capture size 262144 bytes
02:53:32.412454 IP 10.0.0.60 > 10.0.0.20: ICMP echo request, id 25, seq 58039, length 40
02:53:32.412499 IP 10.0.0.20 > 10.0.0.60: ICMP echo reply, id 25, seq 58039, length 40
02:53:38.397740 ARP, Request who-has 10.0.0.20 (60:44:55:66:6e:c2 (oui Unknown)) tell 10.0.0.60, length 46
02:53:38.397767 ARP, Reply 10.0.0.20 is-at 60:44:55:66:6e:c2 (oui Unknown), length 28
02:53:38.412193 IP 10.0.0.60 > 10.0.0.20: ICMP echo request, id 25, seq 58041, length 40

相关内容