HP Cisco MDS 9216A Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2 - Page 199
spanning-tree cost
View all HP Cisco MDS 9216A manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 199 highlights
Chapter 2 Ethernet Commands spanning-tree cost Send comments to [email protected] spanning-tree cost To set the path cost of the interface for Spanning Tree Protocol (STP) calculations, use the spanning-tree cost command. To return to the default settings, use the no form of this command. spanning-tree [vlan vlan-id] cost {value | auto} no spanning-tree [vlan vlan-id] cost Syntax Description vlan vlan-id value auto (Optional) Lists the VLANs on this trunk interface for which you want to assign the path cost. You do not use this parameter on access ports. The range is from 1 to 4094. Value of the port cost. The available cost range depends on the path-cost calculation method as follows: • short-The range is 1 to 65536. • long-The range is 1 to 200,000,000. Sets the value of the port cost by the media speed of the interface (see to Table 2-1 for the values). Command Default Port cost is set by the media speed. Command Modes Interface configuration mode Command History Release 4.0(0)N1(1a) Modification This command was introduced. Usage Guidelines The STP port path cost default value is determined from the media speed and path cost calculation method of a LAN interface (see Table 2-1). See the spanning-tree pathcost method command for information on setting the path cost calculation method for Rapid PVST+. Table 2-1 Default Port Cost Bandwidth 10 Mbps 100 Mbps 1-Gigabit Ethernet 10-Gigabit Ethernet Short Path Cost Method Port Cost Long Path Cost Method Port Cost 100 2,000,000 19 200,000 4 20,000 2 2,000 When you configure the value, higher values will indicate higher costs. On access ports, assign the port cost by port. On trunk ports, assign the port cost by VLAN; you can configure all the VLANs on a trunk port as the same port cost. OL-16599-01 Cisco Nexus 5000 Series Command Reference 2-51