R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
83
Parameters
instance instance-id: Configures the device as the root bridge in a particular MSTI. The value of
instance-id ranges from 0 to 15, where 0 represents the CIST.
Description
Use the stp root primary command to configure the device as the root bridge.
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 an MSTP device in the CIST or an STP or 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 15, where 0 represents the CIST.
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 an MSTP device in the CIST or an STP or 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.