arp Command – Complete Reference (Windows)The arp (Address Resolution Protocol) command is used to view and manipulate the local ARP cache, which stores IP-to-MAC address mappings.
arp [-a | -g] [-N <if_addr>]
arp -d <ip_addr> [<if_addr>]
arp -s <ip_addr> <mac_addr> [<if_addr>]
| Option | Description |
|---|---|
-a or -g |
Display current ARP entries for all interfaces |
-a <ip> |
Show ARP entry for a specific IP |
-N <if_addr> |
Show ARP entries for a specific interface (IP address of the adapter) |
-d <ip> |
Delete a single ARP entry |
-d * |
Delete all entries (only manual/static entries, not dynamic ones) |
-s <ip> <mac> |
Add a static ARP entry (IP-to-MAC mapping) |
⚠️ Adding or deleting entries may require administrator privileges.
arp -a
Shows dynamic and static entries:
Interface: 192.168.1.5 --- 0x3
Internet Address Physical Address Type
192.168.1.1 00-14-22-01-23-45 dynamic
arp -a 192.168.1.1
arp -a -N 192.168.1.5
arp -s 192.168.1.100 00-aa-00-62-c6-09
Adds a permanent mapping (until reboot).
arp -d 192.168.1.100
| Task | Command |
|---|---|
| View all ARP entries | arp -a or arp -g |
| View ARP for a specific IP | arp -a 192.168.1.1 |
| View ARP for a specific interface | arp -a -N 192.168.1.5 |
| Add a static ARP entry | arp -s <ip> <mac> |
| Delete an ARP entry | arp -d <ip> |
| Delete all static ARP entries | arp -d * |
The arp command is essential for low-level network diagnostics and management, especially on LANs. It helps you understand how your system resolves MAC addresses for local IP communication.