spanning-tree vlan

Syntax

spanning-tree vlan <VLAN-LIST> [{hello-time | foward-delay | max-age | priority} <VALUE>]

no spanning-tree vlan <VLAN-LIST> [hello-time | foward-delay | max-age | priority]

Description

Creates an RPVST instance for the specified VLAN. This command also allows for configuration of RPVST instance-specific time parameters.

The no form of this command removes the RPVST instance associated with the specified VLAN, and configures default values for RPVST instance-specific parameters.

Command context

config

Parameters

<VLAN-LIST>

Specifies the number of a single VLAN, or a series of numbers for a range of VLANs, separated by commas (1, 2, 3, 4), dashes (1-4), or both (1-4,6).

hello-time <VALUE>

Specifies the hello-time in seconds for the RPVST instance. Range: 2-10 seconds. Default: 2 seconds.

forward-delay <VALUE>

Specifies the forward-delay time in seconds for the RPVST instance. Range: 4-30 seconds. Default: 15 seconds.

max-age <VALUE>

Specifies the maximum age time in seconds for the RPVST instance. Range: 6-40 seconds. Default: 20 seconds.

priority <VALUE>

Specifies the priority for the RPVST instance. Priority value is configured as a multiple of 4096. Range: 0-15. Default: 8 which is 32768.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Creating an RPVST instance for a list of VLANs and configuring various time parameters:

switch# config
switch(config)# spanning-tree vlan 2-5
switch(config)# spanning-tree vlan 2-5 hello-time 5
switch(config)# spanning-tree vlan 5 max-age 10
switch(config)# spanning-tree vlan 2-5 forward-delay 25
switch(config)# spanning-tree vlan 2-5 priority 5

Removing an RPVST instance for a list of VLANs and setting various time parameters to the default:

switch# config
switch(config)# no spanning-tree vlan 2-5
switch(config)# no spanning-tree vlan 2-5 hello-time
switch(config)# no spanning-tree vlan 2-5 forward-time
switch(config)# no spanning-tree vlan 2-5 max-age
switch(config)# no spanning-tree vlan 2-5 priority