Displaying Port Security Settings
To display traffic control information, perform one or more of these tasks:
Command
Switch# show interface status err-disable
Switch# show port-security [interface interface_id |
interface port_channel port_channel_number]
Switch# show port-security [interface interface_id |
interface port_channel port_channel_number] address
Switch# show port-security [interface interface_id |
interface port_channel port_channel_number] vlan
vlan_list
Switch# show port-security [interface interface_id |
interface port_channel port_channel_number] [address
[vlan vlan_list]]
Examples of Security Settings
The following examples are provided:
•
•
•
•
•
•
•
Example 1: Displaying Security Settings for the Entire Switch
This example shows how to display port security settings for the entire switch:
Switch# show port-security
Secure Port
---------------------------------------------------------------------------
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
55-28
Example 1: Displaying Security Settings for the Entire Switch, page 55-28
Example 2: Displaying Security Settings for an Interface, page 55-29
Example 3: Displaying All Secure Addresses for the Entire Switch, page 55-29
Example 4: Displaying a Maximum Number of MAC Addresses on an Interface, page 55-30
Example 5: Displaying Security Settings on an Interface for a VLAN Range, page 55-30
Example 6: Displaying Secured MAC Addresses and Aging Information on an Interface, page 55-30
Example 7: Displaying Secured MAC Addresses for a VLAN Range on an Interface, page 55-31
MaxSecureAddr
(Count)
Fa3/1
2
Fa3/2
2
Fa3/3
2
Fa3/4
2
Fa3/5
2
Purpose
Displays interfaces that have been error-disabled along with
the cause for which they were disabled.
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.
The interface can be a port channel logical interface.
Displays all secure MAC addresses configured on all switch
interfaces or on a specified interface with aging information
for each address.
Displays the maximum allowed number of secure MAC
addresses and the current number of secure MAC addresses
on a specific VLAN-list and a specific interface.
Displays all secure MAC addresses configured on a specific
VLAN-list and a specific interface.
CurrentAddr
SecurityViolation
(Count)
(Count)
2
2
2
2
2
Chapter 55
Configuring Port Security
Security Action
0
Restrict
0
Restrict
0
Shutdown
0
Shutdown
0
Shutdown