Linux systems use Arp-scan to check for IP address conflicts
If the IP address planning is not good, even if there is a unified IP address will make mistakes! Recommended server IP address use to register details, the last computer room batch deployment server, will have been reused IP and assigned to another server, fortunately, the business has not caused great impact.
So when configuring IP for the server, how to ensure that the IP address is not used, or if there is an exception in the method of detecting that? See a tool today.
Arp-scan, the tool sends ARP packets within the LAN to collect IP and MAC address information. If an IP address corresponds to more than one MAC address, the IP conflict is indicated.
The installation deployment method is as follows:
There are two methods of installation:
Install the software dependency package first
Yum install-y libpcap Libpcap-devel
1. Yum Source Installation:
# yum Install Arp-scan-y
2, compiling and installing
2.1 Download Package
Http://www.nta-monitor.com/tools-resources/security-tools/arp-scan-archive
wget http://www.nta-monitor.com/files/arp-scan/arp-scan-1.9.tar.gz
2.2, compiling the package
Tar xvf arp-scan-1.9.tar.gz
CD arp-scan-1.9
./configure
Make && make install
3. Introduction of the method of use
3.1: Specify which NIC to select
Arp-scan-i eth0-l
3.2: View all the hosts in the network segment
Arp-scan-l
3.3: Specify a section of IP address
Arp-scan-I. eth0 192.168.1.0/24
3.4: Scan the local network
Arp-scan--localnet
3.5 Update MAC address to be aware of the vendor's NIC when scanning
Get-oui-v
Other uses can refer to
Arp-scan--help
Http://linux.die.net/man/1/arp-scan
This article is from the "Kang Jianhua" blog, make sure to keep this source http://michaelkang.blog.51cto.com/1553154/1414081