2
Use the
undo arp max-learning-num
command to restore the default.
By default, the maximum number of dynamic ARP entries that an interface can learn is 1024.
When the
number
argument is set to 0, the interface is disabled from learning dynamic ARP entries.
Examples
# Specify VLAN-interface 40 to learn up to 500 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface vlan-interface 40
[Sysname-Vlan-interface40] arp max-learning-num 500
# Specify GigabitEthernet 1/0/1 to learn up to 1000 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet1/0/1] arp max-learning-num 1000
# Specify Layer 2 aggregate interface bridge-aggregation 1 to learn up to 1000 dynamic ARP entries.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] arp max-learning-num 1000
arp static
Syntax
arp static
ip-address mac-address
[
vlan-id
interface-type interface-number
]
undo arp static
ip-address
undo arp
ip-address
View
System view
Default level
2: System level
Parameters
ip-address
: Specifies the IP address in an ARP entry.
mac-address
: Specifies the MAC address in an ARP entry, in the format H-H-H.
vlan-id
: Specifies the ID of a VLAN to which a static ARP entry belongs, in the range 1 to 4094.
interface-type interface-number
: Specifies the interface type and interface number.
Description
Use the
arp static
command to configure a static ARP entry in the ARP mapping table.
Use the
undo arp
command to remove an ARP entry.