How To Use The ARP Command
Using the arp command. The Arp (Address Resolution Protocol) tool is enables the display and alteration of the Arp table on a local system, which matches physical MAC addresses of system to the corresponding IP addresses. The Arp tool increases the speed of connection by eliminating the requirement to match MAC addresses with IP addresses for subsequent connections. To display the parameters used for arp, open a command prompt with admin priviledges and type arp /?
Accepted parameters for the Arp tool are as follows:
- -a[InetAddr] [-N IfaceAddr] : Shows the Arp table for all the adapters on a system. You should use Arp –a with the InetAddr (IP address) parameter to show what the ARP cache entry is on an IP address.
- -dInetAddr [IfaceAddr] : This deletes an entry with a certain IP address (ie InetAddr). You can use the IfaceAddr parameter (IP address which is assigned to the interface) to delete an entry in a table for a specified interface. The wildcard character can be used instead of InetAddr to delete all entries.
- -sInetAddr EtherAddr [IfaceAddr] : This adds a static entry to the ARP cache which resolves the IP address (ie InetAddr) to the physical address (EtherAddr). Add a static ARP cache entry to the table for a specific interface by using the IP address assigned to the interface (ie IfaceAddr).