About secure MAC addresses
Secure MAC addresses are configured or learned in autoLearn mode. If the secure MAC addresses are saved, they can survive a device reboot. You can bind a secure MAC address only to one port in a VLAN.
Secure MAC addresses include static, sticky, and dynamic secure MAC addresses.
Table 23: Comparison of static, sticky, and dynamic secure MAC addresses
Type | Address sources | Aging mechanism | Can be saved and survive a device reboot? |
---|---|---|---|
Static | Manually added (by using the port-security mac-address security command without the sticky keyword). | Not available. The static secure MAC addresses never age out unless you perform any of the following tasks:
| Yes. |
Sticky |
| By default, sticky MAC addresses do not age out. However, you can configure an aging timer or use the aging timer together with the inactivity aging feature to remove old sticky MAC addresses.
| Yes. The secure MAC aging timer restarts at a reboot. |
Dynamic |
| Same as sticky MAC addresses. | No. All dynamic secure MAC addresses are lost at reboot. |
When the maximum number of secure MAC address entries is reached, the port changes to secure mode. In secure mode, the port cannot add or learn any more secure MAC addresses. The port allows only frames sourced from secure MAC addresses or MAC addresses configured by using the mac-address dynamic or mac-address static command to pass through.