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

Configuration Guide - Ethernet Switching

S1720, S2700, S5700, and S6720 V200R012(C00 and C20)

This document describes the configuration of Ethernet services, including configuring MAC address table, link aggregation, VLANs, VLAN aggregation, MUX VLAN, VLAN termination, Voice VLAN, VLAN mapping, QinQ, GVRP, VCMP, STP/RSTP/MSTP, VBST, SEP, RRPP, ERPS, LBDT, and Layer 2 protocol transparent transmission.
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).
(Optional) Configuring a Path Cost for a Port

(Optional) Configuring a Path Cost for a Port

Context

A 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. Table 13-14 lists the recommended path costs for ports with different link rates.
Table 13-14  Recommended path costs for ports with different link rates

Link Rate

Recommended Path Cost

Recommended Path Cost Range

Supported 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.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run stp pathcost-standard { dot1d-1998 | dot1t | legacy }

    A path cost calculation method is specified.

    By default, the IEEE 802.1t standard (dot1t) is used to calculate the path cost.

    All devices on a network must use the same path cost calculation method.

  3. Run interface interface-type interface-number

    The view of an interface participating in spanning tree calculation is displayed.

  4. Run stp cost cost

    A path cost is set for the interface.

    The following describes the supported cost range for different calculation methods:

    • When the Huawei calculation method is used, cost ranges from 1 to 200000.
    • When the IEEE 802.1d standard method is used, cost ranges from 1 to 65535.
    • When the IEEE 802.1t standard method is used, cost ranges from 1 to 200000000.

Translation
Download
Updated: 2018-12-24

Document ID: EDOC1100038339

Views: 156564

Downloads: 682

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