Disabling mac address learning on a vlan – H3C Technologies H3C S10500 Series Switches User Manual
Page 36

25
To do…
Use the command…
Remarks
Enable global MAC
address learning
undo mac-address mac-learning
disable
Optional
Enabled by default.
Enter interface view or
port group view
•
Enter Layer 2 Ethernet interface
view or Layer 2 aggregate
interface view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual port-group-name
Required
Use either command.
Settings in Layer 2 Ethernet interface view
or Layer 2 aggregate interface view take
effect on the interface only. Settings in
port group view take effect on all member
ports in the port group.
Disable MAC address
learning on the interface
or all ports in the port
group
mac-address mac-learning disable
Required
Enabled by default.
NOTE:
•
When MAC address learning is disabled, the obtained MAC addresses remain valid until they age out.
•
For configuration about port groups, see the chapter “Ethernet interface configuration.”
Disabling MAC address learning on a VLAN
You might disable MAC address learning on a per-VLAN basis.
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.
NOTE:
When MAC address learning is disabled, the learned MAC addresses remain valid until they age out.
Configuring the aging timer for dynamic MAC address entries
The MAC address table uses an aging timer for dynamic MAC address entries for security and efficient
use of table space. If a dynamic MAC address entry has failed to update before the aging timer expires,
the device deletes the entry. This aging mechanism ensures that the MAC address table can quickly
update to accommodate the latest network changes.
Set the aging timer appropriately. Too long an aging interval might cause the MAC address table to
retain outdated entries, exhaust the MAC address table resources, and fail to update its entries to
accommodate the latest network changes. Too short an interval might result in removal of valid entries,
causing unnecessary broadcasts, which might affect device performance.
Follow these steps to configure the aging timer for dynamic MAC address entries: