|

How To Use The Arp Command In Windows (2026)

Arp is a built-in Windows command that shows and edits the table linking IP addresses to hardware addresses on your network.

You can use it to see which devices your PC has talked to, remove an entry, or add a fixed one.

This guide covers each switch Microsoft documents.

Table of Contents

Arp quick answer

Open Command Prompt, type arp -a and press Enter to display the current ARP cache for every network interface.

GoalCommand
Show all ARP entriesarp -a
Show the entry for one IP addressarp -a 10.0.0.80
Show entries for one interfacearp -a -N 10.0.0.99
Show entries in verbose modearp -a -v
Delete one entryarp -d 10.0.0.80
Delete all entriesarp -d *
Add a static entryarp -s 10.0.0.80 00-AA-00-4F-2A-9C

What the arp command does

The Microsoft Learn arp page explains that the ARP cache holds IP addresses and the physical addresses they resolved to.

There is a separate table for each Ethernet or Token Ring adapter installed on the computer.

Microsoft lists Windows 11 and Windows 10 among the systems the page applies to.

Open Command Prompt and run arp

  1. Select Start and type Command Prompt.
  2. Open the Command Prompt result.
  3. Type arp -a and press Enter.

Each interface that uses ARP gets its own table in the output.

Microsoft says that if several network interfaces use ARP, the entries for each one are displayed.

Arp syntax

Microsoft documents three forms of the command.

arp -s [inet_addr] [eth_addr] [if_addr] arp -d [inet_addr] [if_addr] arp -a [inet_addr] [-N if_addr] [-v]

The first form adds an entry, the second deletes one, and the third displays them.

Arp parameters

ParameterWhat it does
-aDisplays the current ARP entries by querying the protocol data. With an IP address, it shows only that entry.
-gWorks the same as -a.
-vVerbose mode, which includes invalid entries and entries on the loopback interface.
-N if_addrShows entries for the interface with that IP address. The parameter is case-sensitive.
-dDeletes the entry for the IP address you give. Use * to delete all entries.
-sAdds a static entry linking an IP address to a physical address.
inet_addrThe IP address to display, delete or add.
eth_addrThe physical (MAC) address for -s.
if_addrThe IP address of the interface whose table you change. If you leave it out, the first applicable interface is used.

Because -N is case-sensitive, type it as a capital N.

Display the ARP cache

The -a switch queries the protocol data and prints the current entries.

arp -a

The -g switch does exactly the same thing, so either one lists the cache.

Add an IP address to see one entry only.

arp -a 10.0.0.80

Microsoft’s other display example shows the table for one interface by giving the interface’s own IP address after -N.

arp -a -N 10.0.0.99

Both the address and the interface selector are optional, which means a plain arp -a is always a valid command.

Show invalid and loopback entries with -v

Adding -v puts the output in verbose mode.

That includes invalid entries and entries on the loopback interface, which the normal view leaves out.

arp -a -v

Use it when an expected address is missing and you want to see whether Windows marked it invalid.

Delete an ARP entry

The -d switch removes the entry for the IP address you name.

arp -d 10.0.0.80

Use an asterisk instead of an address to clear every entry.

arp -d *

Microsoft shows that you can add an interface IP address after the address to limit the change to one interface.

Add a static ARP entry

The -s switch ties an IP address to a physical address.

arp -s 10.0.0.80 00-AA-00-4F-2A-9C

This is Microsoft’s own example, so replace both values with the ones for your device.

The MAC address must be six hexadecimal bytes separated by hyphens, such as 00-AA-00-4F-2A-9C.

IP addresses use dotted decimal notation, such as 10.0.0.1.

Static entries are temporary

Microsoft says entries added with -s are removed when the TCP/IP protocol is stopped and started.

To create permanent static entries, Microsoft says to put the arp commands in a batch file and use Scheduled Tasks to run it at startup.

  1. Save your arp -s commands in a batch file.
  2. Create a task that runs the file at startup.
  3. Restart the PC and run arp -a to confirm the entry is back.

Our guide to creating a scheduled task in Windows 11 walks through the task side.

Find the interface address for -N

The -N switch needs the IP address of the interface you want, not its name.

Microsoft says ipconfig with no parameters shows the IPv4 and IPv6 addresses, subnet mask and default gateway for each adapter.

  1. Run ipconfig in Command Prompt.
  2. Find the adapter you want, such as your Ethernet or Wi-Fi connection.
  3. Copy its IPv4 address.
  4. Run arp -a -N followed by that address.

That limits the output to the one adapter you care about.

Which command for which job

CommandUse it to
arp -aSee which IP addresses your PC has resolved to hardware addresses
getmacList the MAC addresses of your own network cards
ipconfig /allSee the full TCP/IP configuration of every adapter

Arp looks at other devices on the network, while getmac and ipconfig describe your own adapters.

Address formats at a glance

ItemFormatExample
IP addressDotted decimal10.0.0.1
MAC addressSix hexadecimal bytes separated by hyphens00-AA-00-4F-2A-9C
Interface selector-N followed by the interface IP-N 10.0.0.99

Use the hyphen format Microsoft documents when you add a static entry.

Mistakes to avoid

MistakeWhat Microsoft says
Typing -n instead of -NThe -N parameter is case-sensitive
Expecting a static entry to survive a restartIt is removed when the TCP/IP protocol is stopped and started
Leaving out the interface address on a PC with several adaptersThe first applicable interface is used
Using -d * without thinkingThe asterisk deletes all entries

Run arp /? on your own PC to see the built-in help.

Related commands to try next

Pair arp with other network tools when you troubleshoot a connection.

Each guide uses the same step-by-step layout.

Sources

The syntax, parameters, examples and notes come from the Microsoft Learn arp page.

Leave a Reply

Your email address will not be published. Required fields are marked *