Description
Use stp root primary to configure the device as the root bridge.
Use undo stp root 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 an MSTP device in the CIST or an STP/RSTP device as the root bridge, use this command without
specifying any MSTI.
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.
Examples
# In MSTP mode, specify the device as the root bridge of MSTI 1.
<Sysname> system-view
[Sysname] stp instance 1 root primary
stp root secondary
Syntax
stp [ instance instance-id ] root secondary
undo stp [ instance instance-id ] 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 32, where 0 represents the CIST.
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 an MSTP device in the CIST or an STP/RSTP device as a secondary root bridge, use this
command without specifying any MSTI.
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
120