2-885
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
show port-security
show port-security
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 EXEC mode
Command History
Usage Guidelines If you enter the command without keywords, the output includes the administrative and operational
status of all secure ports on the switch.
If you enter the interface-id value or port-channel-interface 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.
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.
Release Modification
12.1(13)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.2(18)EW Support was enhanced to display sticky MAC addresses.
12.2(25)EWA Support was enhanced to display settings on a per-VLAN basis.
12.2(31)SGA Support was enhanced to display settings on EtherChannel interfaces.