ECS2020 Series CLI Reference Guide-R04
88
spanning-tree cost
Configure the port external path cost, and the switch sends BPDUs to a downstream switch, which adds to
the cast value of the transmission port’s cast field of a BPDU.
spanning-tree cost [1-200000000]
19
Port configuration mode
Enter the port configuration mode and set the cost value of the port.
Set the cost value of GigabitEthernet0/1 to 2000
ECS2020-10P(config-if-GigabitEthernet0/1)# spanning-tree cost 2000
spanning-tree guard
Sets the port protection function
spanning-tree guard [loop|none|root]
Command
Command
Description
show spanning-tree interface gigabitEthernet
0/1
Display the spanning tree status and
configuration of
GigabitEthernet 0/1.
Parameter
Parameter
Description
cost [1-200000000]
The value of external path cost
Command
Command
Description
show spanning-tree interface gigabitEthernet
0/1
Display the spanning tree status and
configuration of
GigabitEthernet0/1.
Parameter
Parameter
Description
loop
Sets the loop to avoid a port configured with
this command. The BPDU continues to remain
blocked and a loop is avoided.
root
Ports that enable this function do not re -
select the root bridge after receiving a higher
priority BPDU.
none
Turns off the guard function.
Default
Mode
Usage
Example