148
[Device-Ethernet1/1] port-security mac-address security 1-1-2 vlan 1
Error: Security MAC address configuration failed.
Error:Can not operate security MAC address for current port mode is not autoLearn!
Analysis
Secure MAC addresses can be configured only on ports operating in autoLearn mode.
Solution
Set the port security mode to autoLearn.
[Device-Ethernet1/1] undo port-security port-mode
[Device-Ethernet1/1] port-security max-mac-count 64
[Device-Ethernet1/1] port-security port-mode autolearn
[Device-Ethernet1/1] port-security mac-address security 1-1-2 vlan 1
Cannot change port security mode when a user is online
Symptom
Port security mode cannot be changed when an 802.1X authenticated or MAC authenticated user is
online.
[DeviceEthernet1/1] undo port-security port-mode
Error:Cannot configure port-security for there is 802.1X user(s) on line on port
Ethernet1/1.
Analysis
Changing port security mode is not allowed when an 802.1X authenticated or MAC authenticated
user is online.
Solution
Use the cut command to forcibly disconnect the user from the port before changing the port security
mode.
[Device-Ethernet1/1] quit
[Device] cut connection interface ethernet 1/1
[Device] interface ethernet 1/1
[Device-Ethernet1/1] undo port-security port-mode