MAC Address Aging – Is It Just for Dynamic/Sticky MAC Addresses?

ciscomac addressport-security

Regarding Cisco port-security.

Is mac address aging just for dynamic/sticky mac addresses?
Does the ageing play any part in a statically configured mac address?
If no static or sticky configuration is configured, does the ageing come into play?

Best Answer

You can configure an interface to convert the dynamic MAC addresses to sticky secure MAC addresses and to add them to the running configuration by enabling sticky learning. To enable sticky learning, enter the switchport port-security mac-address sticky command. When you enter this command, the interface converts all the dynamic secure MAC addresses, including those that were dynamically learned before sticky learning was enabled, to sticky secure MAC addresses.

The sticky secure MAC addresses do not automatically become part of the configuration file, which is the startup configuration used each time the switch restarts. If you save the sticky secure MAC addresses in the configuration file, when the switch restarts, the interface does not need to relearn these addresses. If you do not save the configuration, they are lost.

So they wont be ageing from port security, mac address only ageing from CAM and ARP. Port security and ARP table are two different concepts.