ARP Cache Entries
ARP establishes correspondences between network addresses (an IP address, for example) and Ethernet hardware addresses. A record of each correspondence is kept in a cache for a predetermined amount of time and then discarded.
You can also add a static (permanent) entry to the ARP cache that persists until explicitly removed.
Defining a Static ARP Cache Entry
ARP and other address resolution protocols provide a dynamic mapping between IP addresses and media addresses. Because most hosts support dynamic address resolution, generally you need not specify static ARP entries. If you must define them, you can do so globally. Performing this task installs a permanent entry in the ARP cache. Cisco IOS XR software uses this entry to translate 32-bit IP addresses into 48-bit hardware addresses.
Optionally, you can specify that the software responds to ARP requests as if the software was identified by the specified IP address, by making an alias entry in the ARP cache.
Configuration Example
A cache entry is created to establish connection between an IP address 203.0.1.2 and the MAC address 0010.9400.000c. Additionally, the cache entry is created as an alias entry such that the interface to which the entry is attached will respond to ARP request packets for this network layer address with the data link layer address in the entry.
Router#config
Router(config)#arp 203.0.1.2 0010.9400.000c arPA
Router(config)#commit
Running Configuration
Router#show run arp 203.0.1.2 0010.9400.000c arpA
arp vrf default 203.0.1.2 0010.9400.000c ARPA
Verification
Verify that the State is static for proper functioning:
Router#show arp location 0/RP0/CPU0
Address Age Hardware Addr State Type Interface
203.0.1.1 - ea28.5f0b.8024 Interface ARPA HundredGigE0/0/1/0
203.0.1.2 - 0010.9400.000c Static ARPA HundredGigE0/0/1/0