Step...
2.
Configure the aging
timer for dynamic
MAC address entries
Configuring the MAC learning limit on ports
The device's forwarding performance can degrade as the MAC address table grows.
To prevent the MAC address table from getting so large that the forwarding performance degrades, limit
the number of MAC addresses that can a port can obtain.
To configure the MAC learning limit on a Layer 2 Ethernet interface or all ports in a port group:
Step...
1.
Enter system view
2.
Enter interface view
or port group view
3.
Configure the MAC
learning limit on the
interface
group
Displaying MAC address tables
Task...
Display MAC address table
information
Display the aging timer for
dynamic MAC address
entries
Display MAC address
statistics
Setting a MAC address table configuration
Network requirements
As shown in
Command...
mac-address timer {
aging seconds | no-
aging }
Command...
system-view
Enter Layer 2 Ethernet interface
view
interface interface-type interface-
number
Enter port group view:
port-group manual port-group-
name
mac-address max-mac-count count
or
port
Command...
display mac-address [ mac-address [ vlan vlan-id ]
| [ [ dynamic | static ] [ interface interface-type
interface-number ] | blackhole ] [ vlan vlan-id ] [
count ] ] [ | { begin | exclude | include } regular-
expression ]
display mac-address aging-time [ | { begin |
exclude | include } regular-expression ]
display mac-address statistics [ | { begin | exclude
| include } regular-expression ]
Figure
2:
Remarks
Optional
300 seconds by default
The no-aging parameter disables the aging timer
Remarks
—
Required
Use either command
Settings in Layer 2 Ethernet interface view
only take effect on the interface
Settings in port group view take effect on
all member ports in the port group
Required
No MAC learning limit is configured by
default
21
Remarks
Available in any
view
Available in any
view
Available in any
view