CLI Reference Guide-R04

Table Of Contents
Chapter 9
| General Security Measures
Port Security
– 303 –
Command Mode
Privileged Exec
Example
This example shows the port security settings and number of secure addresses for
all ports.
Console#show port security
Global Port Security Parameters
Secure MAC Aging Mode : Disabled
Port Security Port Summary
Port Port Security Port Status Intrusion Action MaxMacCnt CurrMacCnt
--------------------------------------------------------------------------
Eth 1/ 1 Disabled Secure/Down None 0 2
Eth 1/ 2 Enabled Secure/Up None 10 0
Eth 1/ 3 Disabled Secure/Down None 0 0
Eth 1/ 4 Disabled Secure/Down None 0 0
Eth 1/ 5 Disabled Secure/Down None 0 0
.
The following example shows the port security settings and number of secure
addresses for a specific port. The Last Intrusion MAC and Last Time Detected
Intrusion MAC fields show information about the last detected intrusion MAC
address. These fields are not applicable if no intrusion has been detected or port
security is disabled. The MAC Filter ID field is configured by the network-access
port-mac-filter command. If this field displays Disabled, then any unknown source
MAC address can be learned as a secure MAC address. If it displays a filter identifier,
then only source MAC address entries in MAC Filter table can be learned as secure
MAC addresses.
Table 54: show port security - display description
Field Description
Secure MAC
Aging Mode
The configured status (enabled or disabled)
Port The port ID
Port Security The configured status (enabled or disabled).
Port Status The operational status:
Secure/Down – Port security is disabled.
Secure/Up – Port security is enabled.
Shutdown – Port is shut down due to a response to a port security violation.
Intrusion Action The configured intrusion response.
MaxMacCnt The maximum number of addresses which can be stored in the address table for
this interface (either dynamic or static).
CurrMacCnt The current number of secure entries in the address table.