Specifications
2-724
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
show port-security
show port-secu rity
To display the port security settings for an interface or for the switch, use the show port-security
command.
show port-security [address] [interface interface-id]
[interface port-channel port- channel-number ] [vlan vlan- id]
Syntax Description
Command Modes Privileged EXE C mode
Usage Guidelines I f you enter the command without keywords, the output includes the administrative and operational
status of all secure ports on the s witch.
If you enter the interface-id value or port-channel-interf ace value, the show port-security command
displays port security settings for the interface.
If you enter the address keyword, the show port-security address command displays the secure MAC
addresses for all interfaces and the aging information for each secure address.
If you enter the interface-id value and the address keyword, the show port-security address interface
command displays all the MAC addresses for the interface with aging information for each secure
address. You can also use this command to display all the MAC addresses for an interface even if you
have not enabled port security on it.
Sticky MAC addresses are addresses that persist across switch reboots and link flaps.
Examples This example shows how to display port security settings for the entire switch:
Switch# show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security Action
(Count) (Count) (Count)
---------------------------------------------------------------------------
Fa3/1 2 2 0 Restrict
Fa3/2 2 2 0 Restrict
Fa3/3 2 2 0 Shutdown
Fa3/4 2 2 0 Shutdown
Fa3/5 2 2 0 Shutdown
Fa3/6 2 2 0 Shutdown
Fa3/7 2 2 0 Shutdown
Fa3/8 2 2 0 Shutdown
Fa3/10 1 0 0 Shutdown
Fa3/11 1 0 0 Shutdown
Fa3/12 1 0 0 Restrict
Fa3/13 1 0 0 Shutdown
address ( Optional) Displays all secure MAC addresses for all ports or for a specific
port.
interface interface-id (Optional) Displays port security settings for a specific interface.
interface port-channel
port channel-number
(Optional) Displays port security for a specific port-channel interface.
vlan vlan-id (Optional) Displays port security settings for a specific VLAN.