SUMMARY STEPS
1.
enable
2.
configure terminal
3.
interface interface-id
4.
switchport port-security aging
{
static
|
time time
|
type
{
absolute
|
inactivity
}}
5.
end
6.
show port-security
[
interface interface-id
] [
address
]
7.
show running-config
8.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Specifies the interface to be configured, and enter interface
configuration mode.
interface interface-id
Example:
Switch(config)#
interface
Step 3
gigabitethernet1/0/1
Enables or disable static aging for the secure port, or set the aging
time or type.
switchport port-security aging
{
static
|
time
time
|
type
{
absolute
|
inactivity
}}
Step 4
Example:
Switch(config-if)#
switchport
The switch does not support port security aging of sticky
secure addresses.
Note
Enter
static
to enable aging for statically configured secure
addresses on this port.
port-security aging time 120
For
time
, specifies the aging time for this port. The valid range is
from 0 to 1440 minutes.
For
type
, select one of these keywords:
•
absolute
—
Sets the aging type as absolute aging. All the secure
addresses on this port age out exactly after the time (minutes)
specified lapses and are removed from the secure address list.
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
416
OL-29048-01
Configuring Port-Based Traffic Control
Enabling and Configuring Port Security Aging