Step
3.
Set the MAC learning limit on
the interface.
Setting the MAC learning limit for a VLAN
You can limit the number of MAC addresses that can be learned for a VLAN.
To configure the MAC learning limit for a VLAN:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
Set the MAC leaning limit for
the VLAN.
Configuring the unknown frame forwarding rule
after the MAC learning limit is reached
You can enable or disable forwarding of unknown frames after the MAC learning limit is reached.
In this document, unknown frames refer to frames whose source MAC addresses are not in the MAC
address table.
Configuration restrictions and guidelines
For this feature to function correctly, do not configure this feature in both interface view and VLAN
view.
If you configure this feature in the view of a VLAN, only basic VLAN commands and port-based
VLAN commands are supported on the VLAN. For more information, see VLANs in Layer 2—LAN
Switching Command Reference.
Configuring the device to forward unknown frames after the
MAC learning limit on an interface is reached
Step
1.
Enter system view.
2.
Enter interface view.
Command
mac-address max-mac-count
count
Command
system-view
vlan vlan-id
mac-address max-mac-count
count
Command
system-view
•
Enter Layer 2 Ethernet
interface view.
interface interface-type
interface-number
•
Enter Layer 2 aggregate
interface view.
interface
bridge-aggregation
interface-number
8
Remarks
By default, the number of MAC
addresses that can be learned on
an interface is not limited.
Remarks
N/A
N/A
By default, no MAC learning limit
is set for a VLAN.
Remarks
N/A
N/A