User guide
set arp
Chapter 2 Command Descriptions 89
set arp
Device support This command is supported in all devices.
Purpose Manually configures an entry in the Address Resolution Protocol (ARP)
table, or displays the contents of the ARP table.
The ARP table contains the Ethernet-to-IP address mappings of other
devices on the LAN, which is required to communicate with these devices.
The ARP protocol updates this table automatically, so manual modification
is seldom required.
Required
permissions
The root user can configure ARP table entries. Normal users can display
ARP table entries.
Syntax Configure ARP table entries
set arp ether=etaddr ip=ipaddr [tim2liv=time]
Display ARP table entries
set arp [range=range]
Options ether=etaddr
The Ethernet address of a device.
ip=ipaddr
The IP address of a device.
range=range
A range of table entries, which are identified by the "index" option in the
ARP table.
tim2liv=time
The time, in seconds, to keep an entry in the ARP table. The range is 0
to 1200 seconds. The default is 0, which means the entry will never time
out.
Examples Display a range of entries in ARP table
#> set arp range=1-4
Display all entries in ARP table
#> set arp
Configure an entry in ARP table
#> set arp ip=198.150.150.10 ether=08:00:20:05:0b:da tim2liv=900
See also • "remove" on page 77 to remove values from the arp table.
• "revert" on page 79. The “revert arp” option reverts the “set arp”
configuration.