Usage Scenario
To control the number of users and protect the MAC address table against attacks, you can limit the number of MAC addresses that can be learned by a device. You can also configure the system to discard packets to improve network security.
Configuring a MAC address learning limit rule for the current VSI controls the number of users in the current VSI. When the number of MAC addresses learned in the current VSI reaches the limit, no new MAC addresses can be learned. You can also configure the system to discard packets to prevent MAC address attacks to improve network security.
Configuration Impact
Trustworthy MAC addresses may not be recorded after the number of learned MAC addresses reaches the limit. If an enterprise or a family is attacked by different source MAC addresses, only the network of the enterprise or family, not the whole network is affected.
Precautions
MAC address limitation is not supported on VE interfaces.
Before configuring a MAC address learning limit rule, run the
reset mac-address command to clear the learned MAC addresses to ensure that the number of MAC addresses that can be learned is limited accurately.