Mac-Address Mac-Learning Disable; Mac-Address Max-Mac-Count - H3C MSR Series Command Reference Manual

Comware 5 layer 2 - lan switching
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

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

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 a port.
Use mac-address max-mac-count disable-forwarding to disable the device from forwarding
frames with unknown source MAC addresses after the number of learned MAC addresses reaches
the upper limit.
Use undo mac-address max-mac-count to restore the default maximum number of MAC
addresses that can be learned on an Ethernet port.
Use undo mac-address max-mac-count disable-forwarding to allow the device to forward
frames received on an Ethernet port with unknown source MAC addresses after the number of
learned MAC addresses reaches the upper limit.
6

Advertisement

Table of Contents
loading

Table of Contents