set arp

Use this command to add mapping entries to the switch‘s ARP table.

Syntax

set arp ip-address mac-address [interface interface] [temp]

Parameters

ip-address Specifies the IP address to map to the MAC address and add to the ARP table.
mac-address Specifies the MAC address to map to the IP address and add to the ARP table. 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.
temp (Optional) Sets the ARP entry as not permanent. This allows the entry to time out.

Defaults

  • If temp is not specified, the ARP entry will be added as a permanent entry.
  • If interface is not specified, the router makes a best guess as to the interface the ARP entry is associated with, based upon the best route at the time the ARP entry is used or displayed.

Mode

All command modes.

Usage

The interface option is optional, but if not specified, it defaults to a value of 0. This causes the entry to be marked as a “best guess” entry. Best guess entries are resolved by the ARP subsystem. The interface will be determined based on the best route at the time the ARP entry is used or displayed. If an interface is specified, the entry is anchored to that interface, even if the interface is deleted.

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.

Because they are not permanent, entries using the temp option do not display as static (S), when using the show arp command.

Example

This example shows how to map IP address 198.133.219.232 to MAC address 00-00-0c-40-0f-bc and VLAN interface 20:

System(rw)->set arp 198.133.219.232 00-00-0c-40-0f-bc interface vlan.0.20