CLI Reference Guide-R02

Table Of Contents
Chapter 9
| General Security Measures
Port Security
– 286 –
If sticky MAC addresses are received on another secure port, then the port
intrusion action is taken.
Example
Console(config-if)#port security mac-address sticky
Console#
port security
mac-address-as-
permanent
Use this command to save the MAC addresses that port security has learned as
static entries.
Syntax
port security mac-address-as-permanent [interface interface]
interface - Specifies a port interface.
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-18)
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-18)