Displaying Port Security Settings
To display traffic control information, enter one or more of these commands:
Command
Router# show port-security [interface interface_id]
Router# show port-security [interface interface_id]
address
This example displays output from the show port-security command when you do not enter an interface:
Router# show port-security
Secure Port
Action
----------------------------------------------------------------------------
----------------------------------------------------------------------------
Total Addresses in System: 21
Max Addresses limit in System: 128
This example displays output from the show port-security command for a specified interface:
Router# show port-security interface fastethernet 5/1
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 example displays output from the show port-security address privileged EXEC command:
Router# show port-security address
-------------------------------------------------------------------
Vlan
----
1
1
1
1
1
1
1
1
1
1
-------------------------------------------------------------------
Total Addresses in System: 10
Max Addresses limit in System: 128
Cisco 7600 Series Router Cisco IOS Software Configuration Guide—12.1E
26-6
MaxSecureAddr
(Count)
Fa5/1
11
Fa5/5
15
Fa5/11
5
Secure Mac Address Table
Mac Address
Type
-----------
----
0001.0001.0001
SecureDynamic
0001.0001.0002
SecureDynamic
0001.0001.1111
SecureConfigured
0001.0001.1112
SecureConfigured
0001.0001.1113
SecureConfigured
0005.0005.0001
SecureConfigured
0005.0005.0002
SecureConfigured
0005.0005.0003
SecureConfigured
0011.0011.0001
SecureConfigured
0011.0011.0002
SecureConfigured
Purpose
Displays port security settings for the switch or for the
specified interface, including the maximum allowed number of
secure MAC addresses for each interface, the number of secure
MAC addresses on the interface, the number of security
violations that have occurred, and the violation mode.
Displays all secure MAC addresses configured on all switch
interfaces or on a specified interface with aging information
for each address.
CurrentAddr
SecurityViolation
(Count)
(Count)
11
0
5
0
4
0
Ports
Remaining Age
-----
-------------
Fa5/1
Fa5/1
Fa5/1
Fa5/1
Fa5/1
Fa5/5
Fa5/5
Fa5/5
Fa5/11
Fa5/11
Chapter 26
Configuring Port Security
Security
Shutdown
Restrict
Protect
(mins)
15 (I)
15 (I)
16 (I)
-
-
23
23
23
25 (I)
25 (I)
78-14064-04