2-361
Catalyst4500 Series SwitchCiscoIOS Command Reference—Release 12.2(18)EW
78-16201-01
Chapter2Cisco IOS Commands for the Catalyst 4500 Series Switches
show port-security
show port-security
To display port security settings for an interface or for the switch, use the show port-security command.
show port-security [address] [interface interface-id]
Syntax Description
Command Modes Privileged EXEC
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, 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.
Examples This is an example of the output from the show port-security command:
Switch# show port-security
Secure Port MaxSecureAddr CurrentAddr SecurityViolation Security
Action
(Count) (Count) (Count)
----------------------------------------------------------------------------
Fa0/1 11 11 0 Shutdown
Fa0/5 15 5 0 Restrict
Fa0/11 5 4 0 Protect
----------------------------------------------------------------------------
Total Addresses in System :21
Max Addresses limit in System :1024
Switch#
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.
Release Modification
12.1(13)EW Support for this command was first introduced on the Catalyst 4500 series switch.
12.2(18)EW Support was enhanced to display sticky MAC addresses.