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.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1492
How to Configure Port Security
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......