Stp Root Secondary - HP A5830 Series Command Reference Manual

Layer 2 - lan switching
Hide thumbs Also See for A5830 Series:
Table of Contents

Advertisement

Use the undo stp root command to restore the default.
By default, a device is not a root bridge.
To set an MSTP device as the root bridge in a specific MSTI, use this command with the MSTI specified.
To set a PVST device as the 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 the root bridge, use this
command without specifying any MSTI and VLAN.
Once you specify the device as the root bridge, you cannot change the priority of the device.
Related commands: stp priority and stp root secondary.
Syntax
stp [ instance instance-id | vlan vlan-list ] root primary
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 the root bridge in a particular MSTI. The value of instance-
id is in the range of 0 to 31, where 0 represents the CIST.
vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1- 1 0>, where the
vlan-id parameter represents the VLAN ID, in the range of 1 to 4094, and &<1- 1 0> indicates that you can
specify up to 10 VLAN IDs or VLAN ID ranges.
Examples
# In MSTP mode, specify the device as the root bridge of MSTI 1.
<Sysname> system-view
[Sysname] stp instance 1 root primary
# In PVST mode, specify the device as the root bridge of VLAN 1.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp vlan 1 root primary

stp root secondary

Description
Use the stp root secondary command to configure the device as a secondary root bridge.
Use the undo stp root command 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.
131

Advertisement

Table of Contents
loading

Table of Contents