Step
2.
Enter interface view or port
group view.
3.
Disable MAC address
learning.
NOTE:
For more information about port group configuration, see
Disabling MAC address learning on a VLAN
You may disable MAC address learning on a per-VLAN basis.
To disable MAC address learning on a VLAN:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
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,
the router deletes the entry. This aging mechanism ensures that the MAC address table could promptly
update to accommodate latest network changes.
Set the aging timer appropriately. Too long an aging interval may 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 may result in removal of valid entries,
causing unnecessary broadcasts, which may affect router performance.
To configure the aging timer for dynamic MAC address entries:
Step
1.
Enter system view.
2.
Configure the aging timer for
dynamic MAC address
entries.
Command
•
Enter Layer 2 Ethernet interface
view, Layer 2 VE interface view,
or Layer 2 aggregate interface
view:
interface interface-type
interface-number
•
Enter port group view:
port-group manual
port-group-name
mac-address mac-learning disable
Command
system-view
vlan vlan-id
mac-address mac-learning disable
Command
system-view
mac-address timer { aging seconds
| no-aging }
22
Remarks
Use any command.
The configuration you make in
Layer 2 Ethernet interface view,
Layer 2 VE interface view, or Layer
2 aggregate interface view takes
effect on the current interface only.
Configuration made in port group
view takes effect on all the member
ports in the port group.
By default, MAC address learning
is enabled on ports.
Interface Configuration Guide
Remarks
N/A
N/A
By default, MAC address learning
is enabled.
Remarks
N/A
Optional.
The default setting is 300 seconds.
.