arp-scan
Table of Contents
Arp-scan
Description
Arp-scan is a powerful and efficient utility for local network enumeration that operates by using the ARP protocol. Unlike higher-level tools (like ping or Nmap) which primarily use IP-layer protocols (like ICMP or TCP/UDP), arp-scan works directly at Layer 2 (the Data Link layer) of the OSI model.
- Purpose: Its main purpose is to quickly discover all active hosts on the same local subnet by collecting their MAC (Media Access Control) addresses and the associated IP addresses. This is particularly useful for network inventory, security auditing, and troubleshooting.
- How it Works:
- The tool sends a broadcast ARP request out to the entire local network segment.
- The ARP request typically asks, "Who has the IP address X.X.X.X? Tell my MAC address."
- Every device on the local network that receives the request and recognizes the request's IP range will respond with an ARP reply containing its specific MAC address.
arp-scanlistens for these replies and presents the gathered information (IP, MAC, and often the vendor based on the MAC's OUI).
Because ARP is a fundamental protocol for local network communication and must be answered for network function, arp-scan is generally faster and often more reliable for host discovery on a local segment than IP-based scanning, as it bypasses firewall rules that might block ICMP (ping) requests or TCP/UDP probes.