To configure the aging timer for dynamic MAC address entries:
To do...
1.
Enter system view
2.
Configure the aging timer for
dynamic MAC address entries
Reduce broadcasts on a stable network by disabling the aging timer to prevent dynamic entries from
aging out unnecessarily. By reducing broadcasts, you improve not only network performance, but also
security, because the chances for a data packet to reach unintended destinations are reduced.
Configuring the MAC learning limit on ports
As the MAC address table is growing, the forwarding performance of your router may degrade. To
prevent the MAC address table from getting so large that the forwarding performance is affected, limit
the number of MAC addresses that can be learned on a port.
To configure the MAC learning limit on a Layer 2 Ethernet interface, Layer 2 VE interface, Layer 2
aggregate interface, or all ports in a port group:
To do...
1.
Enter system view
2.
Enter
interface
view or
port
group
view
3.
Configure the MAC learning limit
on the interface or port group, and
configure whether frames with
unknown source MAC addresses
can be forwarded or not when the
MAC learning limit is reached
Displaying and maintaining MAC address tables
To do...
Display MAC address table
information
Use the command...
system-view
mac-address timer { aging
seconds | no-aging }
Enter Layer 2
Ethernet/aggregate
interface view
Enter port group view
Use the 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 ]
Use the command...
system-view
interface interface-type
interface-number
port-group manual
port-group-name
mac-address max-mac-count
count
5
Remarks
—
Optional
300 seconds by default
Remarks
—
Required.
Use either command.
Settings in Layer 2
Ethernet/aggregate interface
view take effect on the current
interface only.
Settings in port group view take
effect on all member ports in the
port group.
Required.
By default, the MAC learning
limit is not configured on ports.
Remarks
Available in any view