2-207
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands set arp
set arp
To add IP address-to-MAC address mapping entries to the ARP table and to set the ARP aging time for
the table, use the set arp command.
set arp [dynamic | permanent | static] {ip_addr hw_addr}
set arp agingtime agingtime
Syntax Description
Defaults The default is no ARP table entries exist; ARP aging is set to 1200 se conds .
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines When entering the hw_addr value, use a 6-hexadecimal byte MAC address in canonical
(00-11-22-33-44-55) or noncanonical (00:11:22:33:44:55) format.
Static (nonpermanent) entries remain in the ARP table until you reset the active supervisor engine.
Examples This example shows how to configure a dynamic ARP entry mapping that will age out after the
configured ARP aging time:
Console> (enable) set arp dynamic 198.133.219.232 00-00-0c-40-0f-bc
ARP entry added.
Console> (enable)
This example shows how to set the aging time for the ARP table to 1800 seconds:
Console> (enable) set arp agingtime 1800
ARP aging time set to 1800 seconds.
Console> (enable)
dynamic (Optional) Specifies that entries are subject to ARP aging updates.
permanent (Optional) Specifies that permanent entries are stored in NVRAM until they
are removed by the clear arp or clear config command.
static (Optional) Specifies that entries are not subject to ARP aging updates.
ip_addr IP address or IP alias to map to the specified MAC address.
hw_addr MAC address to map to the specified IP address or IP alias.
agingtime Sets the period of time after which an ARP entry is removed from the ARP
table.
agingtime Number of seconds that entries will remain in the ARP table before being
deleted; valid values are from 0 to 1,000,000 seconds. Setting this value to 0
disables aging.