DGS-6604
m
arp
CLI Reference Guide
53
arp
Use this command to add a static entry in the Address Resolution Protocol (ARP)
cache. Use the
no arp
command to remove a static entry in the ARP cache.
arp
IP-ADDRESS HARDWARE-ADDRESS
no arp
IP-ADDRESS HARDWARE-ADDRESS
Default
No entries are entered in the ARP cache.
Command Mode
Global configuration
Usage Guideline
Use the
arp
command to assign static and permanent entries to the ARP cache
entries. The cache is used to store the IP addresses and the corresponding MAC
address so that the addresses will not have to be repeatedly resolved. Static and
permanent entries are used for devices that exchange data on a regular basis.
To remove all non-static entries from the ARP cache, use the
clear arp-cache
command.
Example
This example shows how to add static ARP entry for a typical Ethernet host:
Verify the settings by entering the
show arp
command.
Syntax Description
IP-ADDRESS
IP address in four-part dotted decimal format corresponding to the local data-link
address.
HARDWARE-
ADDRESS
Local data-link Media Access (MAC) address (a 48-bit address).
Switch(config)# arp 10.31.7.19 0800.0900.1834