R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
49
stp timer max-age
Use stp timer max-age to set the max age timer.
Use undo stp timer max-age to restore the default.
Syntax
stp [ vlan vlan-id-list ] timer max-age time
undo stp [ vlan vlan-id-list ] timer max-age
Default
The max age is 2000 centiseconds.
Views
System view
Predefined user roles
network-admin
Parameters
vlan vlan-id-list: Sets the max age for the VLANs specified by a VLAN ID list. They are in the format of
vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10
vlan-id [ to vlan-id ] parameters. The value range for the vlan-id argument is 1 to 4094. If you set the STP,
RSTP, or MSTP max age, do not specify this option.
time: Sets the max age in centiseconds, in the range of 600 to 4000 in increments of 100 (as in 600,
700, 800).
Usage guidelines
In the CIST of an MSTP network, the device determines whether a configuration BPDU received on a port
has expired based on the max age timer. If the configuration BPDU has expired, a new spanning tree
calculation process starts. The max age timer takes effect only on the CIST (or MSTI 0).
HP recommends not setting 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. This command makes the
spanning tree protocols automatically calculate the optimal settings for the max age timer. If the network
diameter uses the default value, the max age timer also uses the default value.
Examples
# In MSTP mode, set the max age timer to 1000 centiseconds.
<Sysname> system-view
[Sysname] stp timer max-age 1000
# In PVST mode, set the max age timer for VLAN 2 to 1000 centiseconds.
<Sysname> system-view
[Sysname] stp vlan 2 timer max-age 1000
Related commands
• stp bridge-diameter
• stp timer forward-delay
• stp timer hello