检查ip冲突的方法

使用arping检查ip冲突.

[root@node1 ~]# arping -I enp4s0f0  192.168.11.3
ARPING 192.168.11.3 from 192.168.12.196 enp4s0f0
Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C]  0.683ms
Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C]  0.551ms
Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C]  0.562ms
Unicast reply from 192.168.11.3 [18:C0:4D:1D:AA:7C]  0.548ms

如果返回的mac 地址有多个, 说明这个局域网出现ip冲突.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.