Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Run ARP Scan on Linux to Discover Network Devices

Address Resolution Protocol (ARP) scanning is a network technique used to map IP addresses to MAC addresses on a local network. This is particularly useful for network administrators who need to identify devices connected to their network. In a Linux environment, ARP scanning can be performed using tools such as arp-scan. This article will guide you on how to install and use arp-scan on a Linux system to discover network devices.

Examples:

  1. Installing arp-scan: To use arp-scan, you first need to install it. You can do this using the package manager for your Linux distribution. For Debian-based systems like Ubuntu, you can use apt:

    sudo apt update
    sudo apt install arp-scan

    For Red Hat-based systems like CentOS, you can use yum:

    sudo yum install epel-release
    sudo yum install arp-scan
  2. Running arp-scan: Once arp-scan is installed, you can use it to scan your local network. The basic usage is as follows:

    sudo arp-scan --interface=eth0 --localnet

    Replace eth0 with the name of your network interface. The --localnet option tells arp-scan to scan the local network.

  3. Interpreting the Output: The output of arp-scan will list IP addresses and their corresponding MAC addresses. Here is an example output:

    Interface: eth0, datalink type: EN10MB (Ethernet)
    Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/)
    192.168.1.1   00:11:22:33:44:55   VendorName
    192.168.1.2   66:77:88:99:aa:bb   AnotherVendor

    This output shows that the device with IP address 192.168.1.1 has the MAC address 00:11:22:33:44:55 and is manufactured by VendorName.

  4. Advanced Usage: You can also use arp-scan with various options to customize your scan. For example, to scan a specific IP range:

    sudo arp-scan --interface=eth0 192.168.1.0/24

    Or to save the output to a file:

    sudo arp-scan --interface=eth0 --localnet > scan_results.txt

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.