Linuxarping command to test IP address conflicts

  
        The arping command can be used to test the connectivity between hosts on the LAN and test whether a specific IP address in the LAN is already occupied, which can effectively detect IP address conflicts in the LAN.

FIG examples are as follows: arping -c 3 -f -D * * * * (* * * * for the IP address...)

return null 192.168.2.222, explained.. This IP address is not occupied by the LAN.

192.168.2.106 returns 1, indicating that this IP address is already occupied, and receiving a reply can see the mac address of the terminal bound to the IP.

Arping Command Details:

Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] ip address

Parameters:

-A ARP reply mode, update neighbors -b keeps broadcast -D copy address detection mode -f exits with first reply -q does not display warning message -U active ARP mode, Update neighbors -c<number of packets> number of packets sent -w<timeout> set timeout -I<network card> Use the specified Ethernet device, use eth0 -s to specify the source IP by default Address -h Display help information -V Display version information

Copyright © Windows knowledge All Rights Reserved