Linux systems use Arp-scan to check for IP address conflicts

Source: Internet
Author: User

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

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.