arp

Creates a static Address Resolution Protocol (ARP) entry.

Syntax

arp A.B.C.D mac-address interface { ethernet slot / port | port-channel number | ve ve_id }
no arp A.B.C.D

Parameters

A.B.C.D
Specifies a valid IP address.
mac-address
Specifies a valid MAC address.
interface
Specifies an interface type.
ethernet
Specifies a physical Ethernet interface.
slot
Specifies a valid slot number. For devices that do not support line cards, specify 0.
port
Specifies a valid port number.
port-channel number
Specifies a port-channel.
ve ve_id
Specifies a virtual Ethernet (VE) interface.

Modes

Global configuration mode

VRF configuration mode

Usage Guidelines

The no form of the command deletes a static ARP entry.

Examples

The following example creates a static ARP entry that associates an IP address, a MAC address, and a physical port.

device# configure terminal
device(config)# arp 10.53.4.2 1245.7654.2348 interface ethernet 2/1

The following example configures a static ARP within a user-defined VRF.

device# configure terminal
device(config)# vrf test
device(config-vrf-test)# address-family ipv4 unicast
device(vrf-test-ipv4-unicast)# arp 10.6.6.7 0001.0001.0001 interface ethernet 2/1