cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
24004
Views
11
Helpful
35
Replies

Clearing Port-security sticky mac address on port

droidus
Level 1
Level 1

I am trying to clear a mac from a port.  Here is what it looks like from the running config:

interface GigabitEthernet5/0/7
switchport mode access
switchport port-security mac-address sticky
switchport port-security

sh interfaces status err-disabled returns:

Gi5/0/7                      err-disabled psecure-violation

If there is a violation, shouldn't there be a MAC address listed with the port in the running config?  How do I resolve this so I can allow my client to connect? 

35 Replies 35

...

.....

Hello,

 

I haven't followed the entire post, but try to default the interface:

 

Switch(config)#default interface GigabitEthernet5/0/7

Doing this allows me to pull an IP address.  

DanielPearl.m
Level 1
Level 1

Please go to port

#conf t

#int GigabitEthernet5/0/7

#Shut

#No Sh

mcardinal
Level 1
Level 1

To clear the sticky mac address so the switch can learn a new address

conf t
int G5/0/7
no switchport port-security mac-address sticky xxxx.xxxx.xxxx
shut
no shut

Where xxxx.xxxx.xxxx is the old mac address that was learned by the sticky command. The port will then learn the new mac address that is connected to it. You can also just turn sticky off and back on to force it to learn, i.e.

conf t
int G5/0/7
no switchport port-security mac-address sticky
shut
no shut
switchport port-security mac-address sticky

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card