The mac-limit maximum command configures MAC address learning limit rules of an interface.
The undo mac-limit command removes the MAC address learning limit rules configured on an interface.
| Parameter | Description | Value |
|---|---|---|
| max | Specifies the maximum MAC addresses that can be learned on this interface. | The value is an integer ranging from 0 to 4096. If the value is 0, the number of MAC addresses that can be learned on this interface is not limited. |
| discard | Indicates that the packets whose MAC address cannot be learnt are discarded when the MAC address learning limit is reached. | - |
| forward | Indicates that the packets whose MAC address cannot be learnt are forwarded when the MAC address learning limit is reached. | - |