22
457
10.5.230.232/24
vlan 1
22.6 arp
Use the arp Global Configuration mode command to add a permanent entry to the
Address Resolution Protocol (ARP) cache. Use the no form of this command to
remove an entry from the ARP cache.
Syntax
ip-address mac-address
arp
ip-address
no arp
Parameters
•
ip-address
—IP address or IP alias to map to the specified MAC address.
•
mac-address
—MAC address to map to the specified IP address or IP alias.
•
interface-id
—Address pair is added for specified interface.
Command Mode
Global Configuration mode
Default Configuration
No permanent entry is defined.
If no interface ID is entered, address pair is relevant to all interfaces.
User Guidelines
The software uses ARP cache entries to translate 32-bit IP addresses into 48-bit
hardware (MAC) addresses. Because most hosts support dynamic address
resolution, static ARP cache entries generally do not need to be specified.
Example
The following example adds IP address 198.133.219.232 and MAC address
00:00:0c:40:0f:bc to the ARP table.
switchxxxxxx(config)#
UP/UP
Static
disable
interface-id
[
]
arp
198.133.219.232 00:00:0c:40:0f:bc vlan100
OL-32830-01 Command Line Interface Reference Guide
IP Addressing Commands
Enabled
Valid