The arp command shows and edits the local ARP cache, the table mapping neighbour IP addresses to MAC addresses.
| No. | Step | Source | Destination | Type | Info |
|---|---|---|---|---|---|
| 1 | IP → MAC | your PC | gateway 192.168.1.1 | REQUEST | who has .1? |
| 2 | IP → MAC | gateway 192.168.1.1 | your PC | RESPONSE | .1 is-at 00:11:22… |
| 3 | IP → MAC | printer 192.168.1.20 | your PC | RESPONSE | .20 is-at 3c:52:82… |
The arp command shows and edits the local ARP cache, the table mapping neighbour IP addresses to MAC addresses.
arp -a works on Windows, macOS and Linux; modern Linux prefers ip neigh.arp -d deletes an entry; arp -s adds a static one.