1-9z If the amount of security MAC addresses has not yet reach the maximum number, the port willlearn new MAC addresses and turn them to security MAC addresses;z If the amount of security MAC addresses reaches the maximum number, the port will not be able tolearn new MAC addresses and the port mode will be changed from autolearn to secure.The security MAC addresses manually configured are written to the configuration file; they will not getlost when the port is up or down. As long as the configuration file is saved, the security MAC addressescan be restored after the switch reboots.Configuration prerequisitesz Port security is enabled.z The maximum number of security MAC addresses allowed on the port is set.z The security mode of the port is set to autolearn.Configuring a security MAC addressFollow these steps to configure a security MAC address:To do... Use the command... RemarksEnter system view system-view —In systemviewmac-address security mac-addressinterface interface-type interface-number vlanvlan-idinterface interface-type interface-numberAdd a securityMAC address In Ethernetport view mac-address security mac-address vlanvlan-idEither isrequired.By default, nosecurity MACaddress isconfigured.Displaying and Maintaining Port Security ConfigurationTo do... Use the command... RemarksDisplay information about portsecurity configuration display port-security [ interface interface-list ]Display information aboutsecurity MAC addressconfigurationdisplay mac-address security [ interfaceinterface-type interface-number ] [ vlan vlan-id ][ count ]Available inany view