To delete all the sticky addresses on an interface or a VLAN, use the no switchport port-security sticky interface interface-id command.
CISCO MAC ADDRESS STICKY AGING TIME MAC
Dynamic secure MAC addresses – are dynamically learned by the switch and stored in its MAC address table. To delete a sticky secure MAC addresses from the address table, use the no switchport port-security sticky mac-address macaddress command. These MAC addresses are stored in the address table and in the running configuration of the switch. You can use port security aging to set the aging time for static and dynamic. Static secure MAC addresses – configured manually with switchport port-security mac- address mac- address. The sticky secure addresses remain part of the running configuration. When you use the aging timer together with the inactivity aging feature, the aging timer restarts once traffic data is detected from the secure MAC addresses. 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. To enable sticky learning, enter the switchport port-security mac- address sticky command. If the absolute option is not configured, the secure MAC addresses time out. Subsequently, one may also ask, how do I create a sticky MAC address? In this example, secure MAC addresses are immediately timed out after 60 minutes. This will stay in the config until the switch is rebooted, so it’s important to write the config. After enabling, you will notice the currently connected MAC address (es) will appear in the running config: switchport port-security mac-address sticky. They are learned dynamically from the devices connected to the switchport, are put into the address table AND are entered into the running configuration as a static secure MAC address (sometimes referred to as a static sticky MAC address). switchport port-security mac-address sticky turns on the sticky MAC feature.
One may also ask, what is sticky address learning? Sticky – Sticky secure MAC addresses are a hybrid. Allowing the port to continuously learn MAC addresses is a security risk. Sticky MAC is a port security feature that dynamically learns MAC addresses on an interface and retains the MAC information in case the Mobility Access Switch reboots. Without the MAC address table, traffic would be forwarded out each port, like a hub (hopefully you haven’t used one of those in a long time.) Host A has a fictitious MAC address of AA:AA:AA:AA:AA:AA and it wants to. This makes it efficient to forward traffic directly to a host. After removing the offending MAC address the switch port link goes down. The MAC address table is a way to map each port to a MAC address. wheremacaddressis the MAC address that you want to delete.
Run this command to enable the switch port: To delete a static MAC address: Run the command: Router (config-if) no switchport port-security mac-address sticky macaddress. After removing the offending MAC address the switch port link goes down.wheremac_addressis the MAC address that you want to delete. Run the command: Router(config-if)# no switchport port-security mac-address mac_address.