You might need to disable MAC address learning to prevent the MAC address table from being
•
saturated. For example, when your device is being attacked by many packets with different source
MAC addresses, it affects the update of the MAC address table.
•
Because disabling MAC address learning might result in broadcast storms, enable broadcast storm
suppression after you disable MAC address learning on an interface.
Examples
# Disable global MAC address learning.
<Sysname> system-view
[Sysname] mac-address mac-learning disable
# Disable MAC address learning on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 1/0/1
[Sysname-Ten-GigabitEthernet1/0/1] mac-address mac-learning disable
# Disable MAC address learning on Bridge-Aggregation 1.
<Sysname> system-view
[Sysname] interface bridge-aggregation 1
[Sysname-Bridge-Aggregation1] mac-address mac-learning disable
Related commands
display mac-address mac-learning
mac-address max-mac-count
Use mac-address max-mac-count count to configure the maximum number of MAC addresses that can
be learned on an interface.
Use mac-address max-mac-count disable-forwarding to disable the device from forwarding frames with
unknown source MAC addresses when the upper limit is reached.
Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that
can be learned on an Ethernet interface.
Use undo mac-address max-mac-count disable-forwarding to allow the device to forward frames
received on an Ethernet interface with unknown source MAC addresses when the upper limit is reached.
Syntax
mac-address max-mac-count { count | disable-forwarding }
undo mac-address max-mac-count [ disable-forwarding ]
Default
The maximum number of MAC addresses that can be learned on an interface varies with device models.
Frames received are forwarded when the upper limit is reached.
Views
Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view
Default command level
2: System level
65