Test IP address conflict using the arping command in CentOS

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.