Example
The following example enables port security for port 5, and sets the response to a
security violation to issue a trap message:
Related Commands
show interfaces status (376)
shutdown (364)
mac-address-table static (438)
show port security
This command displays port security status and the secure address count.
Syntax
Command Mode
Privileged Exec
Example
This example shows the port security settings and number of secure addresses for
all ports.
Console(config)#interface ethernet 1/5
Console(config-if)#port security action trap
show port security [interface interface]
interface - Specifies a port interface.
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-32/54)
Console#show port security
Global Port Security Parameters
Secure MAC Aging Mode : Disabled
Port Security Port Summary
Port
Port Security Port Status
--------------------------------------------------------------------------
Eth 1/ 1 Disabled
Eth 1/ 2 Enabled
Eth 1/ 3 Disabled
Eth 1/ 4 Disabled
Eth 1/ 5 Disabled
.
.
.
– 259 –
Chapter 8
Intrusion Action
Secure/Down
None
Secure/Up
None
Secure/Down
None
Secure/Down
None
Secure/Down
None
| General Security Measures
Port Security
MaxMacCnt CurrMacCnt
0
2
10
0
0
0
0
0
0
0