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

To resolve the problem:

  1. Set the port security mode to autoLearn.

    [Device-GigabitEthernet1/0/1] undo port-security port-mode
    [Device-GigabitEthernet1/0/1] port-security max-mac-count 64
    [Device-GigabitEthernet1/0/1] port-security port-mode autolearn
    [Device-GigabitEthernet1/0/1] port-security mac-address security 1-1-2 vlan 1
    
  2. If the problem persists, contact Hewlett Packard Enterprise Support.