How to find IP address conflicts in Linux

Source: Internet
Author: User

Guide You all know what an IP address is, right? They are assigned to devices on the network to represent them. They are assigned through a DHCP server and are often changed. There are now two types of IP addresses. A dynamic one is often changed (a few days), and Static, as its name implies, is static, meaning that they do not change.

Sometimes this can cause some conflicts. When a dynamic IP is assigned and has another network device already possessed the same IP. Or, there are multiple DHCP servers that allocate IP on the same network subnet. If you have connectivity problems and assume it's due to IP collisions, you can use a tool called Arp-scan to scan them.


This tool sends an ARP (address Resolution Protocol) packet to collect addresses on the local network. If there are multiple MAC addresses claiming to have the same IP address, there is a conflict here. To install Arp-scan on Ubuntu or Debian, enter:

$ sudo apt-get install Arp-scan

For Fedora,centos or Redhat:

$ sudo yum install Arp-scan

To detect an IP conflict, run the following command:

$ sudo arp-scan–i eth0-l

Output Example:

192.168.1.10   00:1b:a9:63:a2:4c       BROTHER INDUSTRIES, ltd.192.168.1.30   00:1e:8f:58:ec:49       CANON inc.192.168.1.33   00:25:4b:1b:10:20       Apple, Inc192.168.1.37   10:9a:dd:55:d7:95       Apple Inc192.168.1.38   20:c9:d0:27:8d:56       (Unknown) 192.168.1.39   d4:85:64:4d:35:be       Hewlett Packard192.168.1.39   00:0b:46:e4:8e:6d       Cisco (dup:2) 192.168.1.40   90:2b:34:18:59:c0       (Unknown)

192.168.1.39 This IP conflict, because it appeared two times.

This article was reproduced from: http://www.linuxprobe.com/linux-found-ip-conflict/

Free to provide the latest Linux technology tutorials Books, for open-source technology enthusiasts to do more and better: http://www.linuxprobe.com/

How to find IP address conflicts in Linux

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.