arp max-learning-num

Use arp max-learning-num to set the dynamic ARP learning limit for an interface.

Use undo arp max-learning-num to restore the default.

Syntax

arp max-learning-num max-number [ alarm alarm-threshold ]

undo arp max-learning-num

Default

The following matrix shows the default value for the dynamic ARP learning limit:

Hardware

ARP learning limit on an interface

HPE 12900E switch series

FE cards

HF cards

The limit depends on the ARP table capacity set by using the hardware-resource tcam command. For information about this command, see Fundamentals Command Reference.

Other F cards

16000

Other H cards

48000

HPE 12900 switch series

FE cards

The limit depends on the ARP table capacity set by using the hardware-resource tcam command. For information about this command, see Fundamentals Command Reference.

Other cards

16000

HPE 7900 switch series

16000

Views

Layer 2 Ethernet interface view

Layer 2 aggregate interface view

Layer 3 Ethernet interface view

Layer 3 Ethernet subinterface view

Layer 3 aggregate interface view

Layer 3 aggregate subinterface view

VXLAN VSI interface view

VLAN interface view

Predefined user roles

network-admin

mdc-admin

Parameters

max-number: Specifies the maximum number of dynamic ARP entries for an interface. The following matrix shows the value range for the max-number argument:

Hardware

Value range

HPE 12900E switch series

FE cards

HF cards

0 to n. The value for n depends on the ARP table capacity set by using the hardware-resource tcam command.

Other F cards

0 to 16000

Other H cards

0 to 48000

HPE 12900 switch series

FE cards

0 to n. The value for n depends on the ARP table capacity set by using the hardware-resource tcam command.

Other cards

0 to 16000

HPE 7900 switch series

0 to 16000

alarm alarm-threshold: Specifies an alarm threshold for dynamic ARP learning, in percentage. The value range for the alarm-threshold argument is 1 to 100. The device generates a log message when the number of dynamic ARP entries learned on an interface reaches the value calculated by using the formula: (max-number × alarm-threshold)/100. If you do not specify the alarm threshold, the device does not generate log messages.

Usage guidelines

An interface can dynamically learn ARP entries. To prevent an interface from holding too many ARP entries, you can set the maximum number of dynamic ARP entries that the interface can learn. When the maximum number is reached, the interface stops learning ARP entries.

When the number argument is set to 0, the interface is disabled from learning dynamic ARP entries.

Examples

# Specify VLAN-interface 40 to learn a maximum of 10 dynamic ARP entries.

<Sysname> system-view
[Sysname] interface vlan-interface 40
[Sysname-Vlan-interface40] arp max-learning-num 10

# Specify FortyGigE 1/0/1 to learn a maximum of 10 dynamic ARP entries.

<Sysname> system-view
[Sysname] interface fortygige 1/0/1
[Sysname-FortyGigE1/0/1] arp max-learning-num 10

# Specify Layer 2 aggregate interface Bridge-Aggregation 1 to learn a maximum of 10 dynamic ARP entries.

<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] arp max-learning-num 10

# Specify Layer 3 aggregate interface Route-Aggregation 1 to learn a maximum of 10 dynamic ARP entries.

<Sysname> system-view
[Sysname] interface route-aggregation 1
[Sysname-Route-Aggregation1] arp max-learning-num 10