![Huawei AR530 Series Configuration Manual Download Page 206](http://html.mh-extra.com/html/huawei/ar530-series/ar530-series_configuration-manual_169308206.webp)
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
stp priority
priority
A priority is set for the switching device.
The default priority value of a switching device is 32768.
NOTE
If the
stp root primary
or
stp root secondary
command has been executed to configure the device as the
root bridge or secondary root bridge, run the
undo stp root
command to disable the root bridge or secondary
root bridge function and then run the
stp priority
priority
command to set a priority.
----End
6.6.1.4 (Optional) Setting a Path Cost for a Port
Context
Path cost is the reference value used for link selection on an STP/RSTP network.
The path cost value range is determined by the calculation method. After the calculation method
is determined, it is recommended that you set smaller path cost values for the ports with higher
link rates.
In the Huawei calculation method, the link rate determines the recommended value for the path
cost.
lists the recommended path costs for ports with different link rates.
Table 6-15
Mappings between link rates and path cost values
Link Rate
Recommended
Path Cost
Recommended
Path Cost Range
Allowable Path
Cost Range
10 Mbit/s
2000
200 to 20000
1 to 200000
100 Mbit/s
200
20 to 2000
1 to 200000
1 Gbit/s
20
2 to 200
1 to 200000
10 Gbit/s
2
2 to 20
1 to 200000
Over 10 Gbit/s
1
1 to 2
1 to 200000
If a network has loops, it is recommended that you set a large path cost for ports with low link
rates. STP/RSTP then blocks these ports.
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
6 STP/RSTP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
192