spanning-tree cost
Syntax
spanning-tree cost 没有spanning-tree cost [ ]
描述
Sets individual port cost for MSTI 0.
For a given port, the path cost setting can be different for different MSTIs to which the port may belong.
The switch uses the path cost to determine which ports are the forwarding ports in the MSTI; that is, which links to use for the active topology of the MSTI and which ports to block.
The没有
form of the command sets the port cost for MSTI 0 instance to the default value.
Command context
config-if
Parameters
-
-
Specifies the cost of the port for MSTI 0. 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
On the 6400 Switch Series, interface identification differs.
Setting the cost to2000on interface1/1/1:
switch(config)#interface 1/1/1switch(config-if)#spanning-tree cost 2000
设置默认的成本interface1/1/1:
switch(config)#interface 1/1/1switch(config-if)#没有spanning-tree cost