H3C LS-3100-52P-OVS-H3 Operation Manual - page 1694
1-4
Follow these steps to disable MAC address learning on a VLAN:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable global MAC address
learning
undo mac-address
mac-learning disable
Optional
Enabled by default
Enter VLAN view
vlan vlan-id
—
Disable MAC address learning
on the VLAN
mac-address mac-learning
disable
Required
Enabled by default
Support for this command
depends on the device model.
Once MAC learning is disabled in a VLAN, all MAC address entries learnt in the VLAN are removed.
Configuring the Aging Timer for Dynamic MAC Address Entries
The MAC address table on your device is available with an aging mechanism for dynamic entries to
prevent its resources from being exhausted. Set the aging timer appropriately: a long aging interval may
cause the MAC address table to retain outdated entries and fail to accommodate the latest network
changes; a short interval may result in removal of valid entries and hence unnecessary broadcasts
which may affect device performance.
Follow these steps to configure the aging timer for dynamic MAC address entries:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Configure the aging timer for
dynamic MAC address entries
mac-address timer { aging
seconds | no-aging }
Optional
300 by default.
The aging timer for dynamic MAC address entries takes effect globally on dynamic MAC address
entries (learned or administratively configured) only.
Configuring the MAC Learning Limit
To prevent a MAC address table from getting so large that it may degrade forwarding performance, you
may restrict the number of MAC addresses that can be learned on a per-port, port group basis.
Follow these steps to configure the MAC learning limit: