stp root secondary

Syntax

stp [ instance instance-id | vlan vlan-list ] root secondary

undo stp [ instance instance-id | vlan vlan-list ] root

View

System view

Default level

2: System level

Parameters

instance instance-id: Configures the device as a secondary root bridge in a particular MSTI. The value of instance-id ranges from 0 to 16, where 0 represents the CIST.

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.

Description

Use stp root secondary to configure the device as a secondary root bridge.

Use undo stp root to restore the default.

By default, a device is not a secondary root bridge.

To set an MSTP device as a secondary root bridge in a specific MSTI, use this command with the MSTI specified. To set a PVST device as a secondary root bridge in a specific VLAN or multiple VLANs, use this command with a VLAN list specified. To set an MSTP device in the CIST or an STP/RSTP device as a secondary root bridge, use this command without specifying any MSTI and VLAN.

Once you specify the device as a secondary root bridge, you cannot change the priority of the device.

Related commands: stp priority and stp root primary.

Examples

# In MSTP mode, specify the device as a secondary root bridge in MSTI 1.

<Sysname> system-view
[Sysname] stp instance 1 root secondary

# In PVST mode, specify the device as a secondary root bridge in VLAN 1.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 1 root secondary