The mac-limit command configures MAC address learning limiting in a user access profile.
The undo mac-limit command cancels MAC address learning limiting in a user access profile.
By default, MAC address learning limiting is not configured in a user access profile.
This command can only be executed on a parent switch.
Parameter | Description | Value |
---|---|---|
maximum max-num | Specifies the maximum number of MAC addresses that can be learned on an interface. |
The value is an integer that ranges from 0 to 4096. The value 0 indicates that the maximum number of MAC addresses that can be learned is not limited. |
Usage Scenario
#
mac-limit maximum max-num
#
To control the number of access users and protect the MAC address table against attacks, you can limit the maximum number of MAC addresses that can be learned on an interface.
Precautions
The mac-limit and authentication commands are mutually exclusive and cannot be configured together in a user access profile.