The append command displays and modifies entries in the Address Resolution Protocol (ARP) cache. The ARP cache contains one or more tables that are used to store IP addresses and their resolved Ethernet or Token Ring physical addresses. There is a separate table for each Ethernet or Token Ring network adapter installed on your computer. Used without parameters, arp displays help information..
Applies to: Windows Server (Semi-Annual Channel), Windows Server 2019, Windows Server 2016,
Windows Server 2012 R2, Windows Server 2012
arp [/a [<inetaddr>] [/n <ifaceaddr>]] [/g [<inetaddr>] [-n <ifaceaddr>]] [/d <inetaddr> [<ifaceaddr>]] [/s <inetaddr> <etheraddr [<ifaceaddr>]]
Arp parameters
Parameter |
Description |
[/a [<inetaddr>] [/n <ifaceaddr>] |
Displays current arp cache tables for all interfaces. The /n parameter is case-sensitive. To display the arp cache entry for a specific IP address, use |
[/g [<inetaddr>] [/n <ifaceaddr>] |
Identical to /a. |
[/d <inetaddr> [<ifaceaddr>] |
Deletes an entry with a specific IP address, where |
[/s <inetaddr> <etheraddr> [<ifaceaddr>] |
Adds a static entry to the arp cache that resolves the IP address |
/? |
Displays help at the command prompt. |
Remarks
- The IP addresses for inetaddr and ifaceaddr are expressed in dotted decimal notation.
- The physical address for etheraddr consists of six bytes expressed in hexadecimal notation and separated by hyphens (for example, 00-AA-00-4F-2A-9C).
- Entries added with the /s parameter are static and do not time out of the arp cache. The entries are removed if the TCP/IP protocol is stopped and started. To create permanent static arp cache entries, place the appropriate arp commands in a batch file and use Scheduled Tasks to run the batch file at startup.
Examples
To clear the appended directory list, type:
arp /a;
To display the arp cache table for the interface that is assigned the IP address 10.0.0.99 , type:
arp /a /n 10.0.0.99
To add a static arp cache entry that resolves the IP address 10.0.0.80 to the physical address 00-AA-00-4F-2A-9C, type:
arp /s 10.0.0.80 00-AA-00-4F-2A-9C