Show Port-Security Command on CISCO Router/Switch

Command

Show Port-Sec

Use

Shows the port-security status on the switch / interface.

Syntax

Show#show port-sec
Or
Show#show port-sec <int>

Example

This first example is the output of show port-sec on SW3.

SW3#show port-sec
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
—————————————————————————
Fa0/2 1 1 2 Shutdown
—————————————————————————
Total Addresses in System (excluding one mac per port) : 0
Max Addresses limit in System (excluding one mac per port) : 6272

Here’s the output for the port-security status for int fa0/2.

SW3#show port-sec int fa0/2
Port Security : Enabled
Port Status : Secure-shutdown
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Configured MAC Addresses : 1
Sticky MAC Addresses : 0
Last Source Address:Vlan : 1234.5678.489d:1
Security Violation Count : 2
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x