Unable to clear port-security sticky

Answered Question
Oct 16th, 2008

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.

I have this problem too.
0 votes
Correct Answer by julieglass about 8 years 1 month ago

simply put 'no' in front of that command

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

it will clear the captured mac

Correct Answer by Hieu Cao about 8 years 1 month ago

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (3 ratings)
Loading.
ece344609_2 Fri, 10/17/2008 - 08:56

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.

Correct Answer
Hieu Cao Fri, 10/17/2008 - 09:47

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.

Correct Answer
julieglass Fri, 10/17/2008 - 10:22

simply put 'no' in front of that command

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

it will clear the captured mac

Actions

This Discussion