Viewing and Manipulating the ARP Cache on Windows and Linux
Other posts in the ARP series: The ARP protocol explained and An introduction to ARP cache poisoning.
Both Windows and Linux have a tool called arp. I tested this with Windows 7 and Linux kernel 2.6.31, but this information should be true for just about every OS version since the dawn of TCP/IP.
Command Overview
Be aware that there is one ARP cache (table) per interface, as opposed to the routing table, which is global for the system.
Windows: arp.exe
Open an elevated command prompt (you need administrator rights). Now you can type arp to execute the Windows ARP cache manager.
Display the current ARP entries for each interface with arp -a:
[sourcecode language="text" classname="nonum"]
C:>arp -a
Interface: 232.19.232.231 — 0xb
Internet Address Physical Address Type
232.19.232.2 22-22-2c-27-ac-22 dynamic
232.19.232.22 22-21-f3-23-3e-23 dynamic
232.19.232.32 22-29-33-c1-c2-24 dynamic
232.19.232.91 22-2d-29-a9-33-17 dynamic
232.19.232.231 22-22-29-c2-22-b7 dynamic
232.19.232.242 …
