Disabling global MAC address learning
Disabling global MAC address learning disables the learning function on all ports.
To disable MAC address learning:
Step
1.
Enter system view.
2.
Disable global MAC address
learning.
Disabling MAC address learning on ports
After enabling global MAC address learning, you can disable the function on a port.
To disable MAC address learning on an interface:
Step
1.
Enter system view.
2.
Enable global MAC address learning.
3.
Enter Layer 2 Ethernet interface view
or Layer 2 aggregate interface view.
4.
Disable MAC address learning on the
interface.
Disabling MAC address learning on a VLAN
You can disable MAC address learning on a per-VLAN basis.
To disable MAC address learning on a VLAN:
Step
1.
Enter system view.
2.
Enable global MAC address
learning.
Enter VLAN view.
3.
4.
Disable MAC address
learning on the VLAN.
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,
Command
system-view
mac-address mac-learning disable
Command
system-view
undo mac-address mac-learning disable
interface interface-type interface-number
mac-address mac-learning disable
Command
system-view
undo mac-address mac-learning
disable
vlan vlan-id
mac-address mac-learning disable
22
Remarks
N/A
Enabled by default.
Remarks
N/A
Optional
Enabled by default.
N/A
Enabled by default.
Remarks
N/A
Optional
Enabled by default.
N/A
Enabled by default.