stp timer max-age

Syntax

stp [ vlan vlan-list ] timer max-age time

undo stp [ vlan vlan-list ] timer max-age

View

System view

Default level

2: System level

Parameters

vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where the vlan-id argument represents the VLAN ID, in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.

time: Sets the max age in 0.01 seconds, in the range of 600 to 4000 in increments of 100 (as in 600, 700, 800).

Description

Use stp timer max-age to set the max age timer of the device.

Use undo stp timer max-age to restore the default.

By default, the max age is 20 seconds.

In the CIST of an MSTP network or each VLAN of a PVST network, the device determines whether a configuration BPDU received on a port has expired based on the max age timer. If yes, a new spanning tree calculation process starts. The max age timer is ineffective for MSTIs.

To set the max age timer in STP/RSTP/MSTP mode, use this command without any VLAN specified. To set the max age timer for a specific VLAN or multiple VLANs in PVST mode, use this command with a VLAN list specified.

Hewlett Packard Enterprise does not recommend that you set the max age timer with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the max age timer. If the network diameter uses the default value, the max age timer also uses the default value.

Related commands: stp timer forward-delay, stp timer hello, and stp bridge-diameter.

Examples

# In MSTP mode, set the max age timer to 10 seconds.

<Sysname> system-view
[Sysname] stp timer max-age 1000

# In PVST mode, set the max age timer in VLAN 2 to 10 seconds.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 2 timer max-age 1000