Address Resolution Protocol is the one which is used to find the hardware address of a device (MAC Address) using its IP Address on the network. The Windows ARP tool helps to display and modify the ARP table on the system. A simple usage of arp command would be to display the ARP table: From the command prompt type,
arp -a
This will display the ARP table on the system as follows:
C:\>arp -a
Interface: 192.168.0.2 — 0x3
Internet Address Physical Address Type
192.168.0.1 00-18-4d-f8-a4-6e dynamic
To clear the ARP table, use
c:\> arp -d *
If you want to delete a specific entry then simply type,
c:\> arp -d <IP Address>
Ex: c:\> arp -d 172.1.1.1
Alternatively, use
C:\> netsh interface ip delete arpcache
NOTE: In Windows Vista, you need to be an administrator to run the above commands
If you want to add a manual entry (static) then enter,
c:\> arp -s <IP Address> <Ethernet (MAC) Address>
Ex: arp -s 172.1.1.1 00-aa-00-62-c6-09
If there is more than one Interface on the system and you want to display all the ARP entries for the interface then
C:\> arp -a -N <Interface IP>
Ex: arp -a -N 192.168.0.2
Interface: 172.1.1.1 — 0x3
Internet Address Physical Address Type
172.1.1.1 00-28-4d-f1-d4-6e dynamic
A detailed Wiki article on ARP is available here
Leave a Reply