R2511-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V5)
6
The MAC address entries configuration cannot survive a reboot unless you save it. However, the dynamic
MAC address entries are lost at next reboot regardless of whether you save the configuration or not.
Examples
# Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are sent
out of port Ethernet 1/1 that belongs to VLAN 2.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface ethernet 1/1 vlan 2
Related commands
display mac-address
mac-address mac-learning disable
Use mac-address mac-learning disable to disable MAC address learning on a Layer 2 Ethernet
interface.
Use undo mac-address mac-learning disable to enable MAC address learning on a Layer 2 Ethernet
interface.
Syntax
mac-address mac-learning disable
undo mac-address mac-learning disable
Default
MAC address learning is enabled.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Usage guidelines
Follow these guidelines when you configure MAC address learning:
• You can 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.
The learned MAC addresses are removed after MAC address learning is disabled.
Examples
# Disable MAC address learning on port Ethernet 1/1.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] mac-address mac-learning disable
Related commands
display mac-address mac-learning










