mac-address-table aging-time

mac-address-table aging-time

To configure the aging time for entries in the Layer 2 table, use the mac - address - table aging - time command in global configuration mode. To reset the seconds value to the default setting, use the no form of this command.
Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
mac-address-table aging-time seconds
no mac-address-table aging-time seconds
Catalyst Switches
mac-address-table aging-time seconds [ vlan vlan - id ]
no mac-address-table aging-time seconds [ vlan vlan - id ]

Syntax Description

seconds
Aging time; valid values are 0, and from 10 to 1,000,000 seconds.
vlan vlan- id
(Optional) Specifies the VLAN to apply the changed aging time; valid values are from 2 to 1001.

Defaults

300 seconds

Command Modes

Global configuration

Command History

Release
Modification
12.0(7)XE
This command was introduced on Catalyst 6000 family switches.
12.1(1)E
This command was implemented on Catalyst 6000 family switches.
12.2(2)XT
This command was introduced on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.
12.2(8)T
This command was integrated into Cisco IOS Release 12.2(8)T on Cisco 2600 series, Cisco 3600 series, and Cisco 3700 series routers.
12.2(11)T
This command was integrated into Cisco IOS  Release 12.2(11)T.

Usage Guidelines

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
The aging time entry will take the specified value. Valid entries are from 10 to 1,000,000 seconds.
This command cannot be disabled.
Catalyst Switches
If you do not enter a VLAN, the change is applied to all routed-port VLANs.
Enter 0 seconds to disable aging.

Examples

Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series Routers
The following example shows the aging time being configured:
   Router(config)# mac-address-table aging-time 300
Catalyst Switches
The following example shows the aging time being configured:
Router(config)# mac-address-table aging-time 400
The following example shows the aging time being disabled:
Router(config)# mac-address-table aging-time 0

Related Commands

Command
Description
show mac - address - table aging - time
Displays the MAC address aging time.

你可能感兴趣的:(mac,职场,Address,休闲)