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 aging timer for dynamic MAC address entries takes effect globally on dynamic MAC address
entries (learned or administratively configured) only.
Configuring the MAC Learning Limit
To prevent a MAC address table from getting so large that it may degrade forwarding performance, you
may restrict the number of MAC addresses that can be learned on a per-port, port group basis.
Follow these steps to configure the MAC learning limit:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet
interface view
interface interface-type
interface-number
Enter
Ethernet
interface
view, port
group view
Enter port group
view
port-group manual
port-group-name
Required
Use any of these three
commands.
The configuration you make in
Ethernet 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.
Configure the maximum number
of MAC addresses that can be
learned on an Ethernet port view
or port group
mac-address
max-mac-count
count
Required
The default maximum number
of MAC addresses that can be
learned is not configured.