1-20Cannot Configure Secure MAC AddressesSymptomCannot configure secure MAC addresses.[Switch-GigabitEthernet1/0/1] port-security mac-address security 1-1-2 vlan 1Error: Security MAC address configuration failed.AnalysisNo secure MAC address can be configured on a port operating in a port security mode other thanautoLearn.SolutionSet the port security mode to autoLearn.[Switch-GigabitEthernet1/0/1] undo port-security port-mode[Switch-GigabitEthernet1/0/1] port-security max-mac-count 64[Switch-GigabitEthernet1/0/1] port-security port-mode autolearn[Switch-GigabitEthernet1/0/1] port-security mac-address security 1-1-2 vlan 1Cannot Change Port Security Mode When a User Is OnlineSymptomPort security mode cannot be changed when an 802.1X-authenticated or MAC authenticated user isonline.[Switch-GigabitEthernet1/0/1] undo port-security port-modeError:Cannot configure port-security for there is 802.1X user(s) on line on portGigabitEthernet1/0/1.AnalysisChanging port security mode is not allowed when an 802.1X-authenticated or MAC authenticated useris online.SolutionUse the cut command to forcibly disconnect the user from the port before changing the port securitymode.[Switch-GigabitEthernet1/0/1] quit[Switch] cut connection interface gigabitethernet 1/0/1[Switch] interface gigabitethernet 1/0/1[Switch-GigabitEthernet1/0/1] undo port-security port-mode