1239
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
switchport port-security aging
switchport port-security aging
To enable port security aging on a Layer 2 port, use the
switchport port-security aging
command. To
disable port security on a port, use the
no
form of this command.
switchport port-security aging
{
time
aging-time
|
type
{
absolute
|
inactivity
}}
no switchport port-security aging
{
time
aging-time
|
type
{
absolute
|
inactivity
}}
Syntax Description
Command Default
Aging time is 0
Aging type is
absolute
Command Modes
Interface configuration mode
Command History
Usage Guidelines
This command does not require a license.
Examples
This example shows how to configure the secure MAC address aging type on a port:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
switchport port-security aging type absolute
switch(config-if)#
This example shows how to set the secure MAC address aging time to 2 minutes:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
switchport port-security aging time 2
switch(config-if)#
time
aging-time
Sets the duration for which all addresses are secured; valid values are from
1 to 1440 minutes.
type
Specifies the type of aging.
absolute
Specifies absolute aging.
inactivity
Specifies that the timer starts to run only when there is no traffic.
Release
Modification
5.2(1)N1(1)
This command was introduced.