cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21505
Views
3
Helpful
2
Replies

how to clear port security violation counters?

inoc-team
Level 1
Level 1

I want to monitor the violations every day, but cannot find a way to clear the counters.

Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action

(Count) (Count) (Count)

---------------------------------------------------------------------------

Fa0/1 24 0 0 Restrict

Fa0/2 24 0 0 Restrict

Fa0/3 24 11 1191 Restrict

Fa0/4 24 12 2317 Restrict

Fa0/5 24 2 0 Restrict

Fa0/6 24 12 2317 Restrict

2 Replies 2

b.hsu
Level 5
Level 5

Currently other than to reset the switch there is no way to clear this security violation.

Joshd78
Level 1
Level 1

You can clear the counter by going into configure terminal, the interface, and flipping port security off then on. 

configure terminal

interface range fa0/1 - 6

no switchport port-security

switchport port-security

 

this will clear the counters without having to do a restart.