36
mac-address mac-learning disable
Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
View
System view, Ethernet interface view, WLAN-BSS interface view
Default level
2: System level
Parameters
None
Description
Use
mac-address mac-learning disable
to disable MAC address learning globally or on an interface.
Use
undo mac-address mac-learning disable
to enable MAC address learning globally or on an
interface.
By default, MAC address learning is enabled.
Follow these guidelines when you configure MAC address learning:
•
You may need to disable MAC address learning to prevent the MAC address table from being
saturated. For example, when your device is being attacked by a great deal of packets with
different source MAC addresses, the update of the MAC address table can be affected.
•
Because disabling MAC address learning may result in broadcast storms, enable broadcast storm
suppression after you disable MAC address learning on a port.
Related commands:
display mac-address mac-learning
.
Examples
# Disable global MAC address learning.
<Sysname> system-view
[Sysname] mac-address mac-learning disable
# Disable MAC address learning on port GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-address mac-learning disable
mac-address max-mac-count
Syntax
mac-address max-mac-count
{
count
|
disable-forwarding
}
undo mac-address max-mac-count
[
disable-forwarding
]
View
Ethernet interface view, WLAN-BSS interface view