No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Setting the STP or MSTP Cost of a Port

Setting the STP or MSTP Cost of a Port

The port path cost affects root port selection during spanning tree calculation. In a spanning tree, the switch port that is enabled with the spanning tree protocol and has the smallest path cost to the root bridge is the root port.

You can run the stp [ process process-id ] [ instance instance-id ] cost cost command in the interface view to set the path cost of a port. If the link rate of a port is high, you are advised to set a small path cost of the port.

# Set the path cost of 10GE1/0/1 to 200.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] stp cost 200
[*HUAWEI-10GE1/0/1] commit
NOTE:

The port path cost is relevant to the path cost calculation method. If the stp pathcost-standard command is used to change the path cost calculation method, the default port path cost is restored.

Path Cost List Defined by IEEE 802.1d-1998, IEEE 802.1t, and Huawei Proprietary Calculation Method

Table 20-1  Path cost list

Interface Rate

Interface Mode

Recommended STP Path Cost

IEEE 802.1D-1998 Standard

IEEE 802.1t Standard

Huawei Legacy Standard

0

-

65535

200,000,000

200,000

10 Mbit/s

Half-Duplex

100

2,000,000

2000

Full-Duplex

99

1,999,999

1999

Aggregated Link 2 Ports

95

1,000,000

1800

Aggregated Link 3 Ports

95

666,666

1600

Aggregated Link 4 Ports

95

500,000

1400

100 Mbit/s

Half-Duplex

19

200,000

200

Full-Duplex

18

199,999

199

Aggregated Link 2 Ports

15

100,000

180

Aggregated Link 3 Ports

15

66,666

160

Aggregated Link 4 Ports

15

50,000

140

1000 Mbit/s

Full-Duplex

4

20,000

20

Aggregated Link 2 Ports

3

10,000

18

Aggregated Link 3 Ports

3

6666

16

Aggregated Link 4 Ports

3

5000

14

10 Gbit/s

Full-Duplex

2

2000

2

Aggregated Link 2 Ports

1

1000

1

Aggregated Link 3 Ports

1

666

1

Aggregated Link 4 Ports

1

500

1

40 Gbit/s

Full-Duplex

1

500

1

Aggregated Link 2 Ports

1

250

1

Aggregated Link 3 Ports

1

166

1

Aggregated Link 4 Ports

1

125

1

100 Gbit/s

Full-Duplex

1

200

1

Aggregated Link 2 Ports

1

100

1

Aggregated Link 3 Ports

1

66

1

Aggregated Link 4 Ports

1

50

1

Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 121679

Downloads: 3136

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next