Spanning-Tree Cost - Cisco Catalyst 2950 Command Reference Manual

Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

spanning-tree cost

spanning-tree cost
Use the spanning-tree cost interface configuration command to set the path cost for spanning-tree
calculations. If a loop occurs, spanning tree considers the path cost when selecting an interface to place
in the forwarding state. Use the no form of this command to return to the default setting.
Syntax Description
vlan vlan-id
cost
Defaults
The default path cost is computed from the interface bandwidth setting. These are the IEEE default path
cost values:
Command Modes
Interface configuration
Command History
Release
12.0(5.2)WC(1)
12.1(9)EA1
Usage Guidelines
When you configure the cost, higher values represent higher costs.
You can set a cost on a VLAN that does not exist. The setting takes effect when the VLAN exists.
If you configure an interface with both the spanning-tree vlan vlan-id cost cost command and the
spanning-tree cost cost command, the spanning-tree vlan vlan-id cost cost command takes effect.
Examples
This example shows how to set a path cost of 250 on an interface:
Switch(config)# interface fastethernet0/4
Switch(config-if)# spanning-tree cost 250
Catalyst 2950 and Catalyst 2955 Switch Command Reference
2-444
spanning-tree [vlan vlan-id] cost cost
no spanning-tree [vlan vlan-id] cost
(Optional) VLAN range associated with a spanning-tree instance. You can specify
a single VLAN identified by VLAN ID number, a range of VLANs separated by a
hyphen, or a series of VLANs separated by a comma. The range is 1 to 4094.
Path cost can range from 1 to 200000000, with higher values meaning higher costs.
10 Mbps—100
100 Mbps—19
155 Mbps—14
1000 Mbps—4
1 Gbps—4
10 Gbps—2
Speeds greater than 10 Gbps—1
Modification
This command was introduced.
The range for the cost variable increased.
Chapter 2
Catalyst 2950 and 2955 Cisco IOS Commands
0L-10102-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 2955

Table of Contents