The Ethernet interface view is displayed.
Step 4
Run:
stp
instance
instance-id
cost
cost
A path cost is set for the port in the current MSTI.
l
When the Huawei calculation method is used,
cost
ranges from 1 to 200000.
l
When the IEEE 802.1d standard method is used,
cost
ranges from 1 to 65535.
l
When the IEEE 802.1t standard method is used,
cost
ranges from 1 to 200000000.
----End
7.6.1.6 (Optional) Configuring a Port Priority in an MSTI
Context
During spanning tree calculation, port priorities in MSTIs determine which ports are selected as
designated ports.
To block a port in an MSTI to eliminate loops, set the port priority value to larger than the default
value. This port will be blocked during designated port selection.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
interface
interface-type interface-number
The Ethernet interface view is displayed.
Step 3
Run:
stp
instance
instance-id
port priority
priority
A port priority is set in an MSTI.
By default, the port priority is 128.
The value range of the priority is from 0 to 240, in steps of 16.
----End
7.6.1.7 Enabling MSTP
Context
After configuring basic MSTP functions on a switching device, enable MSTP function.
After MSTP is enabled on a ring network, it immediately calculates spanning trees on the
network. Configurations on the switching device, such as, the switching device priority and port
priority, will affect spanning tree calculation. Any change to the configurations may cause
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
7 MSTP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
249