CLI Reference Guide-R01

Table Of Contents
Chapter 9
| General Security Measures
Port Security
– 288 –
Command Mode
Privileged Exec
Example
This example shows the switch saving the MAC addresses learned by port security
on ethernet port 1/3.
Console#port security mac-address-as-permanent interface ethernet 1/3
Console#
show port security This command displays port security status and the secure address count.
Syntax
show port security [interface interface]
interface - Specifies a port interface.
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-28)
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 Enabled Secure/Up Shutdown 20 2
Eth 1/ 2 Disabled Secure/Down None 0 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
.
.
.