R0106-HP MSR Router Series Layer 3 - IP Services Command Reference(V7)
5
Parameters
ip-address: Specifies an IP address for the static ARP entry.
mac-address: Specifies a MAC address for the static ARP entry, in the format H-H-H.
vlan-id: Specifies the ID of a VLAN to which the static ARP entry belongs. The value range is 1 to 4094.
The VLAN and VLAN interface must already exist.
interface-type interface-number: Specifies an interface by its type and number. Make sure the interface
belongs to the specified VLAN.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN for a static ARP entry. The
vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. The VPN instance must
already exist. To specify a static ARP entry on the public network, do not specify this option.
Usage guidelines
A static ARP entry is manually configured and maintained. It does not age out and cannot be overwritten
by any dynamic ARP entry.
Static ARP entries can be classified into long and short static ARP entries. A short static ARP entry
contains an IP-to-MAC mapping. A long static ARP entry contains an IP-to-MAC mapping, a VLAN, and
an output interface.
A static ARP entry is effective when the device operates correctly.
When the VLAN or VLAN interface is deleted, long static ARP entries in the VLAN are deleted, and
resolved short static ARP entries in the VLAN become unresolved.
A resolved short static ARP entry might become unresolved upon certain events. For example, it is
unresolved if the output interface is down.
A long static ARP entry is ineffective when the corresponding VLAN interface or output interface is down.
An ineffective long static ARP entry cannot be used to forward packets.
If you specify both the vlan-id and ip-address arguments, the IP address of the corresponding VLAN
interface must be on the same network as the specified IP address.
If you do not specify any VPN, the undo arp command removes ARP entries only for the public network.
Examples
# Configure a static ARP entry that contains IP address 202.38.10.2, MAC address 00e0-fc01-0000,
and output interface GigabitEthernet 2/1/1 in VLAN 10.
<Sysname> system-view
[Sysname] arp static 202.38.10.2 00e0-fc01-0000 10 gigabitethernet 2/1/1
Related commands
• display arp
• reset arp
arp timer aging
Use arp timer aging to set the aging timer for dynamic ARP entries.
Use undo arp timer aging to restore the default.
Syntax
arp timer aging aging-time