LinuxCommandLibrary

arp-scan

TLDR

Scan local network

$ sudo arp-scan -l
copy
Scan specific subnet
$ sudo arp-scan [192.168.1.0/24]
copy
Scan with interface
$ sudo arp-scan -I [eth0] -l
copy
Scan showing vendor information
$ sudo arp-scan -l --resolve
copy
Quiet output (IPs only)
$ sudo arp-scan -l -q
copy

SYNOPSIS

arp-scan [-l] [-I interface] [options] [targets]

DESCRIPTION

arp-scan discovers hosts on a local network by sending ARP requests. It's faster than ping-based scanning because ARP works at layer 2 and hosts cannot easily hide from it.
The tool shows IP addresses, MAC addresses, and optionally vendor names from the IEEE OUI database.

PARAMETERS

-l, --localnet

Scan all addresses on local network
-I interface
Network interface to use
-q, --quiet
Quiet mode (only show responding hosts)
-r n, --retry n
Retry count
-t ms, --timeout ms
Timeout per host
--resolve
Resolve MAC to vendor name
-g, --bandwidth bps
Limit bandwidth
-N, --no-resolve
Don't resolve addresses
-x, --ignoredups
Ignore duplicate responses

CAVEATS

Requires root/sudo for raw socket access. Only works on local network segment (can't scan across routers). Some hosts may rate-limit ARP responses.

HISTORY

arp-scan was written by Roy Hills and has been maintained since the early 2000s as a reliable network discovery tool.

SEE ALSO

arp(8), arping(8), nmap(1)

Copied to clipboard