Spanning-Tree Cost - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

spanning-tree cost

spanning-tree cost
To calculate the path cost of STP on an interface, use the spanning-tree cost command. To revert to the
default, use the no form of this command.
Syntax Description
cost
Defaults
The default settings are as follows:
Command Modes
Interface configuration mode
Command History
Release
12.1(8a)EW
Usage Guidelines
When you configure the cost, the higher values indicate higher costs. The range applies regardless of the
protocol type that is specified. The path cost is calculated, based on the interface bandwidth.
Examples
This example shows how to access an interface and set a path cost value of 250 for the spanning-tree
VLAN that is associated with that interface:
Switch(config)# interface fastethernet 2/1
Switch(config-if)# spanning-tree cost 250
Switch(config-if)#
Related Commands
Command
spanning-tree portfast default
spanning-tree portfast (interface
configuration mode)
spanning-tree port-priority
spanning-tree uplinkfast
spanning-tree vlan
show spanning-tree
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
2-940
spanning-tree cost cost
no spanning-tree cost cost
Path cost; valid values are from 1 to 200,000,000.
FastEthernet—19
GigabitEthernet—1
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
Description
Enables PortFast by default on all access ports.
Enables PortFast mode.
Prioritizes an interface when two bridges compete for
position as the root bridge.
Enables the UplinkFast feature.
Configures STP on a per-VLAN basis.
Displays spanning-tree information.
OL-25342 -01

Advertisement

Table of Contents
loading

Table of Contents