Troubleshooting port security
Cannot set the port security mode
Symptom
Cannot set the port security mode for a port.
Analysis
For a port operating in a port security mode other than noRestriction, you cannot change the port security
mode directly by using the port-security port-mode command.
Solution
1.
Set the port security mode to noRestriction.
[Device-Ten-GigabitEthernet1/1/5] undo port-security port-mode
2.
Set a new port security mode for the port, for example, autoLearn.
[Device-Ten-GigabitEthernet1/1/5] port-security port-mode autolearn
Cannot configure secure MAC addresses
Symptom
Cannot configure secure MAC addresses.
Analysis
No secure MAC address can be configured on a port operating in a port security mode other than
autoLearn.
Solution
Set the port security mode to autoLearn.
[Device-Ten-GigabitEthernet1/1/5] undo port-security port-mode
[Device-Ten-GigabitEthernet1/1/5] port-security max-mac-count 64
[Device-Ten-GigabitEthernet1/1/5] port-security port-mode autolearn
[Device-Ten-GigabitEthernet1/1/5] port-security mac-address security 1-1-2 vlan 1
104