Name

arp

Synopsis

Resolves IP addresses into media access control (MAC) addresses and caches them for reuse.

Syntax

arp -s IPaddress 
                     MACaddress [interfacenumber]
arp -d IPaddress [interfacenumber]
arp -a [IPaddress] [-N interfacenumber]

Options

-a [ IPaddress ]

Resolves the specified IP address into its associated MAC address by querying the Address Resolution Protocol (ARP) cache on the local machine. (If no address is specified, then all cached IP-to-MAC address mappings are displayed.)

-g [ IPaddress ]

Same as -a.

-N interfacenumber

Specifies the network adapter whose ARP cache is to be queried. (Each network adapter has its own ARP cache on a multihomed machine.) Use arp -a to determine the number of each interface. If arp is used without -N on a multihomed machine, the first interface found is used.

-d IPaddress [ interfacenumber ]

Removes the IP-to-MAC address mapping from the local ARP cache for the specified IP address and interface. If no IPaddress is specified, the top entry in the ARP cache is removed.

-s IPaddress MACaddress [ interfacenumber ]

Adds a static IP-to-MAC address mapping to the local ARP cache for the specified interface. The MAC address must be expressed in hexidecimal form as 12 characters, in groups of 2, separated by dashes. Static ARP mappings are persistent until the system reboots.

Examples

View the ARP cache on the local machine:

                     arp -a Interface: 172.16.11.104 on Interface 0x2 Internet Address Physical Address Type 172.16.11.100 00-40-95-d1-29-6c dynamic ...

Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.