Command Reference ARP Commands
2 ARP Commands
2.1 arp
Use this command to add a permanent IP address and MAC address mapping to the ARP cache
table. Use the no form of this command to restore the default setting.
arp ip-address MAC-address type [ alias ]
no arp ip-address MAC-address type [ alias ]
The IP address that corresponds to the MAC address. It includes four parts
of numeric values in decimal format separated by dots.
48-bit data link layer address
ARP encapsulation type. The keyword is arpa for the Ethernet interface.
There is no static mapping record in the ARP cache table by default.
Global configuration mode.
RGOS finds the 48-bit MAC address according to the 32-bit IP address using the ARP cache table.
Since most hosts support dynamic ARP resolution, usually static ARP mapping is not necessary.
The clear arp-cache command can be used to delete the ARP mapping that is learned
dynamically.
The following example sets an ARP static mapping record for a host in the Ethernet.
Ruijie(config)# arp 1.1.1.1 4e54.3800.0002 arpa
Clears the ARP cache table
For the messages corresponds to the directly-connected route, if the switch does not learn the
ARP that corresponds to the destination IP address, it is not able to forward the message in
hardware, and it needs to send the message to the CPU to resolve the address(that is the ARP
learning). Sending large number of this message to the CPU will influence the other tasks of
the switch. To prevent the IP messages from attacking the CPU, a discarded entry is set to the