The arping command can be used to test the connectivity between hosts in the Lan and whether a specific IP address in the Lan is occupied. This can effectively detect IP address conflicts in the LAN. Example: arping-c3-f-D *. * (*. * For IP address) 192.168.2.222 returns Null, indicating that this IP address is not occupied by Lan. 192.168.2.106 returns 1, indicating that this IP address
The arping command can be used to test the connectivity between hosts in the Lan and whether a specific IP address in the Lan is occupied. This can effectively detect IP address conflicts in the LAN.
Example: arping-c 3-f-D *. * (*. * is the IP address)
192.168.2.222 returns Null, indicating that the IP address is not occupied by the LAN.
192.168.2.106 returns 1, indicating that the IP address is occupied and the mac address of the terminal bound to the IP address is displayed after receiving a reply.
Arping command details:
Usage: arping [-fqbDUAV] [-c count] [-w timeout] [-I device] [-s source] IP address
Parameters:
-A arp Reply mode: updates neighbors.
-B keep broadcasting
-D copy address detection mode
-F. exit after receiving the first response.
-Q: No warning information is displayed.
-U active ARP mode, updating neighbors
-C <数据包的数目> Number of sent packets
-W <超时时间> Set timeout
-I <网卡> Use the specified Ethernet device. by default, eth0 is used.
-S: specify the source IP address
-H: Display help information
-V: Display version information