R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
43
Default
A device is not a root bridge.
Views
System view
Predefined user roles
network-admin
Parameters
instance instance-list: Configures the device as the root bridge in the MSTIs that are specified by an
instance list. They are in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where
&<1-10> indicates that you can specify up to 10 instances or instance ranges. The value range for the
instance-id argument is 0 to 4094, and the value 0 represents the CIST.
vlan vlan-id-list: Configures the device as the root bridge in 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.
Usage guidelines
Once you specify the device as the root bridge, you cannot change the priority of the device.
If you do not specify any MSTI or VLAN, this command configures the device as the root bridge of the
MSTP CIST or of the STP or RSTP spanning tree.
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 vlan 1 root primary
Related commands
• stp priority
• stp root secondary
stp root secondary
Use stp root secondary to configure the device as a secondary root bridge.
Use undo stp root to restore the default.
Syntax
stp [ instance instance-list | vlan vlan-id-list ] root secondary
undo stp [ instance instance-list | vlan vlan-id-list ] root
Default
A device is not a secondary root bridge.
Views
System view