Configuration example
# In MSTP mode, perform the following tasks:
Configure the device to calculate the default path costs of its ports by using IEEE 802.1d-1998.
Set the path cost of Ten-GigabitEthernet 1/0/3 to 200 on MSTI 2.
<Sysname> system-view [Sysname] stp pathcost-standard dot1d-1998 Cost of every port will be reset and automatically re-calculated after you change the current pathcost standard. Continue?[Y/N]:y Cost of every port has been re-calculated. [Sysname] interface ten-gigabitethernet 1/0/3 [Sysname-Ten-GigabitEthernet1/0/3] stp instance 2 cost 200
# In PVST mode, perform the following tasks:
Configure the device to calculate the default path costs of its ports by using IEEE 802.1d-1998.
Set the path cost of Ten-GigabitEthernet 1/0/3 to 2000 on VLAN 20 through VLAN 30.
<Sysname> system-view [Sysname] stp pathcost-standard dot1d-1998 Cost of every port will be reset and automatically re-calculated after you change the current pathcost standard. Continue?[Y/N]:y Cost of every port has been re-calculated [Sysname] interface ten-gigabitethernet 1/0/3 [Sysname-Ten-GigabitEthernet1/0/3] stp vlan 20 to 30 cost 2000