Drill: Inspect and Manage the ARP Table¶
Goal¶
Inspect the ARP table to verify MAC-to-IP mappings, detect anomalies, and understand local network neighbor resolution.
Setup¶
- Linux system with iproute2 installed
- Network connectivity to a local subnet
- Root access for modifying entries
Commands¶
Show the ARP/neighbor table:
Filter by interface:
Filter by state:
Look up a specific neighbor:
Force an ARP resolution:
Add a static ARP entry:
Delete an ARP entry:
Flush the ARP cache for an interface:
What to Look For¶
REACHABLEmeans recently confirmed;STALEmeans not recently confirmedFAILEDentries indicate the host did not respond to ARP requestsINCOMPLETEmeans an ARP request was sent but no reply received yet- Duplicate MAC addresses for different IPs may indicate ARP spoofing or misconfiguration
Common Mistakes¶
- Using the deprecated
arpcommand instead ofip neigh - Flushing the ARP table during production without understanding the brief connectivity impact
- Not checking for duplicate MACs when troubleshooting IP conflicts
- Forgetting that static entries added with
ip neighdo not persist across reboots