R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
7
• Because disabling MAC address learning can result in broadcast storms, enable broadcast storm
suppression after you disable MAC address learning on an interface. For more information about
broadcast storm suppression, see Interface Configuration Guide.
Examples
# Disable MAC address learning on interface GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] undo mac-address mac-learning enable
Related commands
display mac-address mac-learning
mac-address timer
Use mac-address timer to configure the aging timer for dynamic MAC address entries.
Use undo mac-address timer to restore the default.
Syntax
mac-address timer { aging seconds | no-aging }
undo mac-address timer
Default
The aging timer for dynamic MAC address entries is 300 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
aging seconds: Sets an aging timer for dynamic MAC address entries, in the range of 10 to 630
seconds.
no-aging: Configures dynamic MAC address entries not to age.
Usage guidelines
After the network topology changes, the dynamic MAC address entries are not updated in a timely
manner. As a result, the device cannot learn new MAC addresses and fails to forward the user traffic
correctly.
To solve this problem, set an appropriate aging time for dynamic MAC address entries. The device
automatically deletes the expired dynamic MAC address entries. Then the device learns new MAC
addresses to build new MAC address entries.
Follow these guidelines to set the aging timer appropriately:
• A long aging interval causes the MAC address table to retain outdated entries and fail to
accommodate the most recent network changes.
• A short aging interval results in removal of valid entries. Then, unnecessary broadcasts packets
appear and affect device performance.