SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
switchport port-security aging
{
static
|
time time
|
type
{
absolute
|
inactivity
}}
4.
end
5.
show port-security
[
interface interface-id
] [
address
]
6.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enters global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Specifies the interface to be configured, and enter interface
configuration mode.
interface interface-id
Example:
Switch(config)#
interface
Step 2
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 3
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.
•
inactivity
—
Sets the aging type as inactivity aging. The secure
addresses on this port age out only if there is no data traffic
from the secure source addresses for the specified time period.
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 4
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
OL-29434-01
345
Configuring Port-Based Traffic Control
Enabling and Configuring Port Security Aging