List All MACs on the Local Network
Per the manpage:
The
arp
tool manipulates or displays the kernel’s IPv4 network neighbor cache. It can add entries to the table, delete one or display the current content. ARP stands for Address Resolution Protocol, which is used to find the media access control address of a network neighbor for a given IPv4 Address.
You can use the arp
command to list all of the devices
on the local network. It is often useful to find the identities of
hidden devices on your network. For example, if you just
plugged a Raspberry Pi into your local network and need to find its IP
address in order to connect to it via SSH.
# arp -i eth0 -a
? (192.168.1.90) at 42:b9:72:xx:xx:x0 [ether] on eth0
? (192.168.1.70) at 54:04:a6:xx:xx:xd [ether] on eth0
Fios_Quantum_Gateway.fios-router.home (192.168.1.1) at 20:c0:47:xx:xx:x1 [ether] on eth0
? (192.168.1.99) at 34:64:a9:xx:xx:xd [ether] on eth0
? (192.168.1.60) at dc:a6:32:xx:xx:x3 [ether] on eth0
(I’ve masked some of the fields above)
Tags: cli, arp, networking, motd