CLI Reference Guide-R04

Table Of Contents
Chapter 9
| General Security Measures
Port Security
– 302 –
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#
port security
mac-address sticky
Use this command to save the MAC addresses that port security has learned as
sticky” entries.
Syntax
port security mac-address sticky
Command Mode
Interface Configuration
Command Usage
Sticky MAC addresses that port security has learned are dynamic addresses that
cannot be moved to another port.
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#
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)