How do I configure the path cost of an STP port on an S series switch

To configure the path cost of an STP port on an S (except the S1700) or E series switch, run the following commands:
Run the stp cost command in the interface view.
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] stp cost 10000
For other configuration commands, visit "Common STP/RSTP Operations" in Common Operation Guide to view the related document.
Common STP/RSTP operations are the same for all switch models.

Scroll to top