Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Unable to clear port-security sticky

Hi all,

I am using the command:

switchport port-security mac-address sticky to set port security.

On one of my IOS switch I am unable to clear the sticky MAC address using the command:

clear port-security sticky int fa 0/1.

Is there another way to achieve without having to upgrade IOS?

Thanks.

3 ACCEPTED SOLUTIONS

Accepted Solutions
New Member

Re: Unable to clear port-security sticky

Yopu can do a show run for the port. The mac address show show up on the port. It should look like this: switchport port-security mac-address 0000.0000.0003. Just run a no switchport port-security mac-address 0000.0000.0003. That should do the trick.

New Member

Re: Unable to clear port-security sticky

The command given by Earnest basically removes the previously set/seen mac-add in that switch port.

Your port security is still enabled though provided that you've this command "switchport port-security" in place.

The port security sticky option is still enabled if you have this command "switchport port-security mac-address sticky" in the switch port.

New Member

Re: Unable to clear port-security sticky

simply put 'no' in front of that command

no switchport port-security mac-address sticky [mac-address]

it will clear the captured mac

5 REPLIES
New Member

Re: Unable to clear port-security sticky

Yopu can do a show run for the port. The mac address show show up on the port. It should look like this: switchport port-security mac-address 0000.0000.0003. Just run a no switchport port-security mac-address 0000.0000.0003. That should do the trick.

New Member

Re: Unable to clear port-security sticky

Thanks Ernest.

What exactly will that command do? I dont want to shut off port security, just wanted to clear the MAC address so the port does not shutdown when the next machine is plugged in.

New Member

Re: Unable to clear port-security sticky

The command given by Earnest basically removes the previously set/seen mac-add in that switch port.

Your port security is still enabled though provided that you've this command "switchport port-security" in place.

The port security sticky option is still enabled if you have this command "switchport port-security mac-address sticky" in the switch port.

New Member

Re: Unable to clear port-security sticky

simply put 'no' in front of that command

no switchport port-security mac-address sticky [mac-address]

it will clear the captured mac

New Member

Re: Unable to clear port-security sticky

Thank you everyone for all the help.

8140
Views
0
Helpful
5
Replies