25
You can disable MAC address learning on a per-VLAN basis.
To disable MAC address learning on a VLAN:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter VLAN view.
vlan
vlan-id
N/A
3.
Disable MAC address
learning on the VLAN.
mac-address mac-learning disable
Enabled by default.
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 that 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 flooding, which might affect device performance.
To configure the aging timer for dynamic MAC address entries:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the aging
timer for dynamic
MAC address entries.
mac-address timer
{
aging
seconds
|
no-aging
}
Optional
300 seconds by default.
The
no-aging
keyword disables the aging timer.
You can reduce flooding on a stable network by disabling the aging timer to prevent dynamic entries
from unnecessarily aging out. By reducing flooding, you improve not only network performance, but also
security, because you reduce the chances that a data packet will reach unintended destinations.
Disabling MAC entry aging timer refresh based on
destination MAC address
To accommodate network changes, the MAC address table keeps updating. Each dynamic MAC
address entry has an aging timer. When the device receives a packet with the source or destination MAC
address matching a dynamic MAC address entry, it restarts the aging timer for the entry.
If you want the device to restart the aging timer of dynamic entries for only matching source MAC
addresses, disable MAC entry aging timer refresh based on destination MAC address.
To disable MAC entry aging timer refresh based on destination MAC address: