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
- What the arp command does
- Open Command Prompt and run arp
- Arp syntax
- Arp parameters
- Display the ARP cache
- Show invalid and loopback entries with -v
- Delete an ARP entry
- Add a static ARP entry
- Static entries are temporary
- Find the interface address for -N
- Which command for which job
- Address formats at a glance
- Mistakes to avoid
- Related commands to try next
- Sources
- More Windows guides
Arp quick answer
Open Command Prompt, type arp -a and press Enter to display the current ARP cache for every network interface.
| Goal | Command |
|---|---|
| Show all ARP entries | arp -a |
| Show the entry for one IP address | arp -a 10.0.0.80 |
| Show entries for one interface | arp -a -N 10.0.0.99 |
| Show entries in verbose mode | arp -a -v |
| Delete one entry | arp -d 10.0.0.80 |
| Delete all entries | arp -d * |
| Add a static entry | arp -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
- Select Start and type Command Prompt.
- Open the Command Prompt result.
- Type
arp -aand 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
| Parameter | What it does |
|---|---|
| -a | Displays the current ARP entries by querying the protocol data. With an IP address, it shows only that entry. |
| -g | Works the same as -a. |
| -v | Verbose mode, which includes invalid entries and entries on the loopback interface. |
| -N if_addr | Shows entries for the interface with that IP address. The parameter is case-sensitive. |
| -d | Deletes the entry for the IP address you give. Use * to delete all entries. |
| -s | Adds a static entry linking an IP address to a physical address. |
| inet_addr | The IP address to display, delete or add. |
| eth_addr | The physical (MAC) address for -s. |
| if_addr | The 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 -aThe -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.80Microsoft’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 -vUse 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.80Use 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-9CThis 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.
- Save your arp -s commands in a batch file.
- Create a task that runs the file at startup.
- 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.
- Run
ipconfigin Command Prompt. - Find the adapter you want, such as your Ethernet or Wi-Fi connection.
- Copy its IPv4 address.
- Run
arp -a -Nfollowed by that address.
That limits the output to the one adapter you care about.
Which command for which job
| Command | Use it to |
|---|---|
arp -a | See which IP addresses your PC has resolved to hardware addresses |
getmac | List the MAC addresses of your own network cards |
ipconfig /all | See 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
| Item | Format | Example |
|---|---|---|
| IP address | Dotted decimal | 10.0.0.1 |
| MAC address | Six hexadecimal bytes separated by hyphens | 00-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
| Mistake | What Microsoft says |
|---|---|
| Typing -n instead of -N | The -N parameter is case-sensitive |
| Expecting a static entry to survive a restart | It is removed when the TCP/IP protocol is stopped and started |
| Leaving out the interface address on a PC with several adapters | The first applicable interface is used |
| Using -d * without thinking | The 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.
- Use getmac to list the MAC addresses of your own adapters
- Use ping and tracert to test whether a device answers
- Use the IP and MAC address guide to find your own addresses
Each guide uses the same step-by-step layout.
Sources
The syntax, parameters, examples and notes come from the Microsoft Learn arp page.
More Windows guides
- How To Use The Driverquery Command In Windows (2026)
- How To Use The Getmac Command In Windows (2026)
- How To Use The Schtasks Command In Windows (2026)
- How To Use The Reg Add Command In Windows (2027)
- How To Use The Whoami Command In Windows (2027)
- How To Use The Findstr Command In Windows (2027)
See all: Windows 11 Guides