67
Syntax
mac-address max-mac-count count
undo mac-address max-mac-count
Default
The number of MAC addresses that can be learned on an interface is not limited.
Views
Layer 2 Ethernet interface view
Predefined user roles
network-admin
Parameters
count: Specifies the maximum number of MAC addresses that can be learned on an interface.
When the argument is set to 0, the interface 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 an interface reaches the limit, the interface stops learning MAC address entries.
Examples
# Configure GigabitEthernet 1/0/1 to learn a maximum of 600 MAC address entries.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-address max-mac-count 600
Related commands
mac-address
mac-address max-mac-count enable-forwarding
mac-address max-mac-count enable-forwarding
Use mac-address max-mac-count enable-forwarding to enable the device to forward
unknown frames received on an interface after the MAC learning limit on the interface is reached.
Unknown frames refer to frames whose source MAC addresses are not in the MAC address table.
Use
undo mac-address max-mac-count enable-forwarding to disable the device from
forwarding unknown frames received on an interface after the MAC learning limit on the interface is
reached.
Syntax
mac-address max-mac-count enable-forwarding
undo mac-address max-mac-count
enable-forwarding
Default
When the MAC learning limit on an interface is reached, the device can forward unknown frames
received on the interface.
Views
Layer 2 Ethernet interface view