spanning-tree vlan cost
Syntax
spanning-tree vlan cost 没有扩充树vlan cost
Description
Configures the spanning tree cost for the VLAN. This is the cost to reach the root port.
The没有
form of this command sets the port cost to the default value.
Command context
config-if
Parameters
-
-
指定的数量single VLAN, or a series of numbers for a range of VLANs, separated by commas (1, 2, 3, 4), dashes (1-4), or both (1-4,6).
-
-
Specifies the spanning tree cost for the VLAN. Range: 1-200,000,000. Default is calculated from the port link speed:
10 Mbps link speed equals a path cost of 2,000,000.
100 Mbps link speed equals a path cost of 200,000.
1 Gbps link speed equals a path cost of 20,000.
2 Gbps link speed equals a path cost of 10,000.
10 Gbps link speed equals a path cost of 2,000.
100 Gbps link speed equals a path cost of 200.
1 Tbps link speed equals a path cost of 20.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Setting port cost:
switch(config-if)#spanning-tree vlan 5 cost 100000
Setting port cost to the default:
switch(config-if)#没有扩充树vlan5 cost