Skip to content

ARP Windows command

The Windows arp command allows users to view and modify the Address Resolution Protocol (ARP) cache. This command-line tool can be used to display the contents of the ARP cache, add static ARP entries, and remove ARP cache entries. By managing the ARP cache, users can resolve networking issues and troubleshoot connectivity problems on their Windows systems. ARP is essential for mapping IP addresses to MAC addresses in a local network, and the arp command provides a simple way to interact with this vital networking protocol.

Terminal window
arp [-a] [-g [GatewayIP]] [-d IP] [-s IP MAC] [InterfaceIndex]
OptionDescription
-aDisplay current ARP entries.
-gDisplay ARP entries on the specified gateway.
-dDelete the ARP entry for the specified IP address.
-sAdd a static ARP entry for the specified IP address and MAC address.
ParameterDescription
IPSpecifies the Internet Protocol (IP) address.
MACSpecifies the Media Access Control (MAC) address.
InterfaceIndexSpecifies the interface index.
Terminal window
arp -a

Displays the current ARP table on the system.

Terminal window
arp -s 192.168.1.100 00-11-22-33-44-55

Adds a static ARP entry mapping IP address “192.168.1.100” to MAC address “00-11-22-33-44-55”.

Terminal window
arp -d 192.168.1.100

Deletes the ARP entry corresponding to the IP address “192.168.1.100”.

Terminal window
arp -d *

Clears the entire ARP cache by deleting all entries.

Display ARP Cache for a Specific Interface

Section titled “Display ARP Cache for a Specific Interface”
Terminal window
arp -a -N 192.168.1.1

Displays the ARP cache for the specific interface with the IP address “192.168.1.1”.

Terminal window
arp -a 192.168.1.100

Queries and displays the ARP entry for the specific IP address “192.168.1.100”.

Terminal window
arp -s 192.168.1.100 00-11-22-33-44-55 temp

Adds a dynamic ARP entry with a timeout for the IP address “192.168.1.100”.

Terminal window
arp -s 192.168.1.100 00-11-22-33-44-55 1

Modifies the MAC address associated with the IP address “192.168.1.100” in the ARP cache.

To use the arp command in CMD, execute the following command:

Terminal window
arp -a

When you run the following command in CMD:

Terminal window
arp -a

It displays the ARP cache of all network interfaces on the local computer.

How can I clear the ARP cache using arp in CMD?

Section titled “How can I clear the ARP cache using arp in CMD?”

To clear the ARP cache using the arp command in CMD, use the following command:

Terminal window
arp -d

To add a static ARP entry in CMD using the arp command, execute the following command:

Terminal window
arp -s <IPAddress> <MACAddress>

  1. Display the ARP cache: arp -a
  2. Add an ARP entry for a specific IP address: arp -s <IPAddress> <MACAddress>
  3. Delete an ARP entry: arp -d <IPAddress>