1-4
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 MAC address aging timer takes effect globally on dynamic MAC address entries (learned or
administratively configured) only.
Configuring the MAC Learning Limit
Configuring the MAC learning limit on ports
As the MAC address table is growing, the forwarding performance of your device may degrade. To
prevent the MAC address table from getting so large that the forwarding performance is affected, you
can limit the number of MAC addresses that can be learned on a port.
Follow these steps to configure the MAC learning limit on an Ethernet port, Layer 2 aggregate interface,
or the Ethernet ports in a port group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet
interface view
interface interface-type
interface-number
Enter port group view
port-group manual
port-group-name
Enter
Ethernet
interface
view, port
group view,
or Layer 2
aggregate
interface
view
Enter Layer 2
aggregate interface
view
interface
bridge-aggregation
interface-number
Required
Use any of these three
commands.
The configuration you make in
Ethernet interface view or
Layer 2 aggregate interface
view takes effect on the current
interface only; the configuration
you make in port group view
takes effect on all the member
ports in the port group.