port security
This command information was updated for 10.0.20a
Port security can be
configured on a single interface or multiple interfaces. Syntax
port security
{ age[
decimal | global-mac
] } { autosave}
{ maximumvalue }
{
secure-mac-addressipaddress}
{ violation[
protect| restrict|
shutdown] }
no port security {
age[
decimal | global-mac
] } { autosave}
{ maximumvalue }
{
secure-mac-addressipaddress}
{ violation[
protect| restrict|
shutdown] }
Modes
Global configuration mode
Usage Guidelines
Examples
The following example shows how to enter port security on a simple interface.
device# configure terminal device (config)# interface ethernet 1/1/24 device (config-if-e2500-1/1/24)# port-security age global-mac maximum 5 secure-mac-address 1111.2222.3333 101 autosave 17 violation protect
| Release version | Command history |
|---|---|
| 10.0.20a | This command was modified to include additional security options. |