-
-
Notifications
You must be signed in to change notification settings - Fork 2
Linux arp Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to arp on Linux, covering Arch Linux, CachyOS, and other distributions including ARP table management, MAC address resolution, and network troubleshooting.
arp (Address Resolution Protocol) manages ARP table.
Uses:
- View ARP table: See MAC address mappings
- Manage entries: Add/remove ARP entries
- Network troubleshooting: Troubleshoot network
- MAC resolution: Resolve IP to MAC
Why it matters:
- Network debugging: Debug network issues
- MAC addresses: See MAC address mappings
- Network management: Manage network layer
Basic usage:
# View ARP table
arp -a
# Shows all ARP entriesHost entry:
# Specific host
arp 192.168.1.1
# Shows entry for IPAdd ARP entry:
# Add static entry
sudo arp -s 192.168.1.1 aa:bb:cc:dd:ee:ff
# -s = set (static entry)Remove entry:
# Delete entry
sudo arp -d 192.168.1.1
# -d = delete (removes entry)Flush cache:
# Clear all entries
sudo ip -s -s neigh flush all
# Or use arp
sudo arp -d -aCheck installation:
# Check arp
which arp
# Usually in net-tools
# Install if missing
sudo pacman -S net-toolsThis guide covered arp usage, ARP table management, and network troubleshooting for Arch Linux, CachyOS, and other distributions.
- ip Guide - Modern network tool
- Networking - Network setup
-
arp Documentation:
man arp
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.