arp (S-, K-Series)

Use this command to add or remove permanent (static) ARP table entries.

Syntax

arp ip-address mac-address [interface interface]
no arp ip-address

Parameters

ip-address Specifies the IP address of a device on the network. Valid values are IP addresses in dotted decimal notation.
mac-address Specifies the 48-bit hardware address corresponding to the hardware MAC address expressed in hexadecimal notation. The supported MAC address formats are:
  • HH-HH-HH-HH-HH-HH
  • HH:HH:HH:HH:HH:HH
  • HHHH.HHHH.HHHH
interface interface (optional) Specifies the interface this ARP entry is associated with.

Defaults

None.

Mode

Configuration command mode.

Usage

If the interface is not specified, the router will do its best to guess which interface the ARP entry is associated with, based on the best route at the time the entry is used or displayed.

The set arp command optionally provides for entering a temporary static ARP entry into the ARP table. Static entries configured using the arp command are always entered as permanent static ARP entries in the ARP table. There are no other differences between these two commands.

The “no” form of this command removes the specified permanent ARP entry.

Example

This example shows how to add a permanent ARP entry for the IP address 130.2.3.1, MAC address 0003.4712.7a99, and interface VLAN 20:

System(rw-config)->arp 130.2.3.1 0003.4712.7a99 interface vlan.0.20