ip arp

To configure a static Address Resolution Protocol (ARP) entry, use the ip arp command. To remove a static ARP entry, use the no form of this command.

ip arp ip-address mac-address

no ip arp ip-address

Syntax Description

ip-address

IPv4 address, in A.B.C.D format.

mac-address

MAC address in one of the following formats:

•E.E.E

•EE-EE-EE-EE-EE-EE

•EE:EE:EE:EE:EE:EE

•EEEE.EEEE.EEEE


Command Default

None

Command Modes

Interface configuration mode
Subinterface configuration mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

Use this command on Layer 3 interfaces and Layer 3 subinterfaces.

Examples

This example shows how to configure a static ARP entry on interface Ethernet 1/2:

switch(config)# interface ethernet 1/2
switch(config-if)# no switchport
switch(config-if)# ip arp 192.0.2.1 0150.5a03.efab 
switch(config-if)#

This example shows how to configure a static ARP entry on a subinterface:

switch(config)# interface ethernet 1/5
switch(config-if)# no switchport
switch(config-if)# interface ethernet 1/1.1
switch(config-subif)# ip arp 192.0.2.1 0150.5a03.efab 
switch(config-subif)#

Related Commands

Command
Description

show ip arp

Displays ARP entries.