April 3, 2010

How to display/clear ARP cache?

The ARP(Address Resolution Protocol) cache or table lists MAC (Media Access Control) address and their associated IP addresses.

How to display ARP cache in Windows ?

Command
Go to command prompt
Start -> Run -> CMD
From command prompt execute this command "arp -a" as shown below.

C:\Users\admin> arp -a

Windows ARP Cache



How to display ARP cache in Linux ?
There are two commands to display ARP cache.
Command 1 : ip neighbor show
[root@avas-2 ~]# ip neighbor show

Command 2 : arp
[root@avas-2 ~]# arp

Windows ARP Cache

How to delete ARP cache entries in Linux and Windows ?

Clearing ARP cache in Windows
Execute this command from the command prompt to delete or clear entire ARP cache .
arp -d *

To clear ARP entry of a particular host use this command .
arp -d host ip

eg: arp -d 192.168.10.12

Clearing ARP cache in Linux
arp -d host ip

eg: arp -d 192.168.10.12

No comments: