Configuring the device priority – H3C Technologies H3C S5560 Series Switches User Manual
Page 115
81
Configuring the current device as the root bridge of a specific
spanning tree
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the current
device as the root
bridge.
•
In STP/RSTP mode:
stp root primary
•
In PVST mode:
stp vlan vlan-id-list root primary
•
In MSTP mode:
stp [ instance instance-list ] root primary
By default, a device does not
function as the root bridge.
Configuring the current device as a secondary root bridge of a
specific spanning tree
Step Command Remarks
1.
Enter system view.
system-view
N/A
2.
Configure the current
device as a secondary root
bridge.
•
In STP/RSTP mode:
stp root secondary
•
In PVST mode:
stp vlan vlan-id-list root secondary
•
In MSTP mode:
stp [ instance instance-list ] root
secondary
By default, a device does not
function as a secondary root
bridge.
Configuring the device priority
Device priority is a factor in calculating the spanning tree. The priority of a device determines whether the
device can be elected as the root bridge of a spanning tree. A lower value indicates a higher priority.
You can set the priority of a device to a low value to specify the device as the root bridge of the spanning
tree. A spanning tree device can have different priorities in different spanning trees.
During root bridge selection, if all devices in a spanning tree have the same priority, the one with the
lowest MAC address is selected. You cannot change the priority of a device after it is configured as the
root bridge or as a secondary root bridge.
To configure the priority of a device in a specified MSTI:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
- H3C S5130 Series Switches H3C S5120 Series Switches H3C SR8800 H3C SR6600-X H3C SR6600 H3C MSR 5600 H3C MSR 50 H3C MSR 3600 H3C MSR 30 H3C MSR 2600 H3C MSR 20-2X[40] H3C MSR 20-1X H3C MSR 930 H3C MSR 900 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module