R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

8
mac-address mac-learning disable
Use mac-address mac-learning disable to disable MAC address learning. Depending on the view that
you entered, you can disable it globally, on a Layer 2 Ethernet interface, on all ports in a port group, or
on a VLAN.
Use undo mac-address mac-learning disable to enable MAC address learning. Depending on the view
that you entered, you can disable it globally, on a Layer 2 Ethernet interface, on all ports in a port group,
or on a VLAN.
Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
Default
MAC address learning is enabled.
Views
System view, Layer 2 Ethernet interface view, VLAN view, port group view, Layer 2 aggregate interface
view
Default command level
2: System level
Usage guidelines
Follow these guidelines when you configure MAC address learning:
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 a port.
Examples
# Disable global MAC address learning.
<Sysname> system-view
[Sysname] mac-address mac-learning disable
# Disable MAC address learning on GigabitEthernet 4/0/1.
<Sysname> system-view
[Sysname] interface GigabitEthernet 4/0/1
[Sysname-GigabitEthernet4/0/1] mac-address mac-learning disable
# Disable MAC address learning on VLAN 10.
<Sysname> system-view
[Sysname] vlan 10
[Sysname-vlan10] 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