Purpose
Command or Action
Verifies your entries.
show port-security
[
interface interface-id
]
[
address
]
Step 5
Example:
Switch#
show port-security interface
gigabitethernet1/0/1
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config startup-config
Step 6
Related Topics
Port Security Aging, on page 338
Monitoring Port Security
This table displays port security information.
Table 36: Commands for Displaying Port Security Status and Configuration
Purpose
Command
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.
show port-security
[
interface interface-id
]
Displays all secure MAC addresses configured on all switch
interfaces or on a specified interface with aging information
for each address.
show port-security
[
interface interface-id
]
address
Displays the number of secure MAC addresses configured
per VLAN on the specified interface.
show port-security interface interface-id
vlan
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
346
OL-29434-01
Configuring Port-Based Traffic Control
Monitoring Port Security