![Huawei Quidway S5600 Operation Manual Download Page 265](http://html.mh-extra.com/html/huawei/quidway-s5600/quidway-s5600_operation-manual_169841265.webp)
Operation Manual – MSTP
Quidway S5600 Series Ethernet Switches-Release 1510
Chapter 1 MSTP Configuration
Huawei Technologies Proprietary
1-29
Changing the path cost of a port may change the role of the port and put it in state
transition. Executing the
stp cost
command with the
instance-id
argument being 0 sets
the path cost on the CIST for the port.
III. Configuration example (A)
# Configure the path cost of GigabitEthernet1/0/1 port in spanning tree instance 1 to be
2,000.
z
Configure in system view.
<Quidway> system-view
[Quidway] stp interface GigabitEthernet1/0/1 instance 1 cost 2000
z
Configure in Ethernet port view.
<Quidway> system-view
[Quidway] interface GigabitEthernet1/0/1
[Quidway-GigabitEthernet1/0/1] stp instance 1 cost 2000
IV. Configuration example (B)
# Change the path cost of GigabitEthernet1/0/1 port in spanning tree instance 1 to the
default one calculated with the IEEE 802.1D-1998 standard.
z
Configure in system view.
<Quidway> system-view
[Quidway] undo stp interface GigabitEthernet1/0/1 instance 1 cost
[Quidway] stp pathcost-standard dot1d-1998
z
Configure in Ethernet port view.
<Quidway> system-view
[Quidway] interface GigabitEthernet1/0/1
[Quidway-GigabitEthernet1/0/1] undo stp instance 1 cost
[Quidway-GigabitEthernet1/0/1] quit
[Quidway] stp pathcost-standard dot1d-1998
1.3.8 Port Priority Configuration
Port priority is an important criterion on determining the root port. In the same condition,
ports with smaller port priority values are more potential to become the root port than
those with bigger priority values.
A port on a MSTP-enabled switch can have different port priorities and play different
roles in different spanning tree instances. This enables packets of different VLANs to be
forwarded along different physical paths, so that load balancing can be achieved by
VLANs.
You can configure port priority in the following two ways.