2-396
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
show port-security
Fa0/2 5 4 0 Protect
----------------------------------------------------------------------------
Total Addresses in System :21
Max Addresses limit in System :1024
This is an example of output from the show port-security interface command:
Switch# show port-security interface fastethernet0/2
Port Security :Enabled
Port status :SecureUp
Violation mode :Shutdown
Maximum MAC Addresses :11
Total MAC Addresses :11
Configured MAC Addresses :3
Aging time :20 mins
Aging type :Inactivity
SecureStatic address aging :Enabled
Security Violation count :0
This is an example of output from the show port-security address command:
Switch# show port-security address
Secure Mac Address Table
-------------------------------------------------------------------
Vlan Mac Address Type Ports Remaining Age
(mins)
---- ----------- ---- ----- -------------
1 0001.0001.0001 SecureDynamic Fa0/1 15 (I)
1 0001.0001.0002 SecureDynamic Fa0/1 15 (I)
1 0001.0001.1111 SecureConfigured Fa0/1 16 (I)
1 0001.0001.1112 SecureConfigured Fa0/1 -
1 0001.0001.1113 SecureConfigured Fa0/1 -
1 0005.0005.0001 SecureConfigured Fa0/5 23
1 0005.0005.0002 SecureConfigured Fa0/5 23
1 0005.0005.0003 SecureConfigured Fa0/5 23
1 0011.0011.0001 SecureConfigured Fa0/6 25 (I)
1 0011.0011.0002 SecureConfigured Fa0/7 25 (I)
-------------------------------------------------------------------
Total Addresses in System :10
Max Addresses limit in System :1024
This is an example of output from the show port-security interface address command:
Switch# show port-security interface fastethernet0/5 address
Secure Mac Address Table
-------------------------------------------------------------------
Vlan Mac Address Type Ports Remaining Age
(mins)
---- ----------- ---- ----- -------------
1 0005.0005.0001 SecureConfigured Fa0/5 19 (I)
1 0005.0005.0002 SecureConfigured Fa0/5 19 (I)
1 0005.0005.0003 SecureConfigured Fa0/5 19 (I)
-------------------------------------------------------------------
Total Addresses:3
Related Commands Command Description
switchport port-security Enables port security on a port, restricts the use of the port to a
user-defined group of stations, and configures secure MAC addresses.