1-6Follow these steps to set the maximum number of secure MAC addresses allowed on a port:To do… Use the command… RemarksEnter system view system-view —Enter Ethernet port view interface interface-typeinterface-number —Set the maximum number ofsecure MAC addressesallowed on a portport-security max-mac-countcount-valueRequiredNot limited by defaultThis configuration is different from that of the maximum number of MAC addresses that can be leanedby the port in MAC address management.Setting the Port Security ModeConfiguration PrerequisitesBefore setting the port security mode, ensure that:z 802.1X is disabled, the port access control method is macbased, and the port access control modeis auto.z MAC authentication is disabled.z The port does not belong to any aggregation group.The above requirements must be all met. Otherwise, you will see an error message and yourconfiguration will fail. On the other hand, after setting the port security mode on a port, you cannotchange any configurations of the first three requirements.z With port security disabled, you can configure the port security mode, but your configuration doesnot take effect.z You cannot change the port security mode of a port when any user is present on the port.z Before configuring the port to operate in autoLearn mode, set the maximum number of secure MACaddresses allowed on a port.