mac-address max-mac-count

Use mac-address max-mac-count to set the MAC learning limit on an interface.

Use undo mac-address max-mac-count to restore the default.

Syntax

mac-address max-mac-count count

undo mac-address max-mac-count

Default

The maximum number of MAC addresses that can be learned on an interface is not set.

Views

Layer 2 Ethernet interface view

Predefined user roles

network-admin

Parameters

count: Sets the maximum number of MAC addresses that can be learned on an interface. The value range is 0 to 4096. When the argument is set to 0, the interface is not allowed to learn MAC addresses.

Usage guidelines

When the number of MAC address entries learned by an interface reaches the limit, the interface stops learning MAC address entries.

Examples

# Configure interface Ten-GigabitEthernet 1/0/1 to learn a maximum of 600 MAC address entries.

<Sysname> system-view
[Sysname] interface ten-gigabitethernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-address max-mac-count 600

Related commands

mac-address

mac-address max-mac-count enable-forwarding