spanning-tree vlan cost
Syntax
spanning-tree vlan <VLAN-LIST> cost <PORT-COST>
no spanning-tree vlan <VLAN-LIST> cost
Description
Configures the spanning tree cost for the VLAN. This is the cost to reach the root port.
The
no
form of this command sets the port cost to the default value.
Command context
config-if
Parameters
<VLAN-LIST>
Specifies the number of a 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).
<PORT-COST>
- 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
Examples
Setting port cost:
switch# config switch(config)# interface 1/1/1 switch(config-if)# spanning-tree vlan 5 cost 100000
Setting port cost to the default:
switch# config switch(config)# interface 1/1/1 switch(config-if)# no spanning-tree vlan 5 cost