port-security max-mac-num
Function
The port-security max-mac-num command sets the maximum number of secure MAC addresses that can be learned on an interface.
By default, only one MAC addresses can be learned on an interface.
Usage Guidelines
Usage Scenario
After enabling port security on an interface, you can run the port-security max-mac-num command to limit the number of MAC addresses that the interface can learn.
Prerequisites
Port security has been enabled by using the port-security enable command on the interface.
Precautions
If the sticky MAC function is disabled, max-number limits the number of secure dynamic MAC addresses learned by the interface.
If the sticky MAC function is enabled, max-number limits the number of sticky MAC addresses learned by the interface.
If you run the port-security max-mac-num command multiple times in the same interface view, only the latest configuration takes effect.