stp timer forward-delay

Syntax

stp [ vlan vlan-list ] timer forward-delay time

undo stp [ vlan vlan-list ] timer forward-delay

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 forward delay in 0.01 seconds, in the range of 400 to 3000 in increments of 100 (as in 400, 500, 600).

Description

Use stp timer forward-delay to set the forward delay timer of the device.

Use undo stp timer forward-delay to restore the default.

By default, the forward delay timer is 15 seconds.

The forward delay timer determines the time interval of state transition. To prevent temporary loops, a spanning tree port goes through the learning (intermediate) state before it transitions from the discarding to the forwarding state. To stay synchronized with the remote device, the port has a wait period between transition states that is determined by the forward delay timer.

To set the forward delay in STP/RSTP/MSTP mode, use this command without any VLAN specified. To set the forward delay 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 forward delay 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 forward delay timer. If the network diameter uses the default value, the forward delay timer also uses the default value.

Related commands: stp timer hello, stp timer max-age, and stp bridge-diameter.

Examples

# In MSTP mode, set the forward delay timer to 20 seconds.

<Sysname> system-view
[Sysname] stp timer forward-delay 2000

# In PVST mode, set the forward delay timer to 20 seconds.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 2 timer forward-delay 2000