107
stp root primary
Syntax
stp
[
instance
instance-id
]
root primary
undo stp
[
instance
instance-id
]
root
View
System view
Default level
2: System level
Parameters
instance
instance-id
: Configures the switch as the root bridge in a particular MSTI. The
instance-id
argument ranges from 0 to 15, where 0 represents the CIST.
Description
Use the
stp root primary
command to configure the switch as the root bridge.
Use the
undo stp root
command to restore the system default.
By default, a switch is not a root bridge.
There is only one effective root bridge in an MSTI. If two or more switches have been designated to be
root bridges of the same MSTI, MSTP will select the switch with the lowest MAC address as the root
bridge.
You can specify a root bridge for each MSTI regardless of the switch's priority. After specifying the switch
as the root bridge or a secondary root bridge, you cannot change its priority.
Related commands:
stp priority
and
stp root secondary
.
Examples
# Specify the switch as the root bridge of MSTI 0.
<Sysname> system-view
[Sysname] stp instance 0 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 switch as a secondary root bridge in a particular MSTI. The
instance-id
argument ranges from 0 to 15, where 0 represents the CIST.