mac-address max-mac-count (VLAN view)
Use mac-address max-mac-count to set the MAC learning limit for a VLAN.
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 MAC learning limit is not set for a VLAN.
Views
VLAN view
Predefined user roles
network-admin
mdc-admin
Parameters
count: Specifies the maximum number of MAC addresses that can be learned for a VLAN. When the argument is set to 0, the VLAN is not allowed to learn MAC addresses. The value range for this argument is 0 to 4096.
Usage guidelines
This command limits the number of MAC address entries to limit the MAC address table size. A large MAC address table will degrade forwarding performance. When the number of MAC address entries learned by a VLAN reaches the limit, the VLAN stops learning MAC address entries.
Examples
# Configure VLAN 10 to learn a maximum of 600 MAC address entries.
<Sysname> system-view [Sysname] vlan 10 [Sysname-vlan10] mac-address max-mac-count 600
Related commands
mac-address
mac-address max-mac-count enable-forwarding (VLAN view)