cisco Catalyst 2960 — (Optional) Configuring Path Cost

Procedure Configuring Spanning Tree Protocol (Optional) Configuring Path Cost Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 interface interface-id Example: Device(config)# interface gigabitethernet 1/0/1 Specifies an interface to configure, and enters interface configuration mode. Valid interfaces include physical ports and port-channel logical interfaces (port-channel port-channel-number). Step 4 spanning-tree cost cost Example: Device(config-if)# spanning-tree cost 250 Configures the cost for an interface.

If a loop occurs, spanning tree uses the path cost when selecting an interface to place into the forwarding state. A lower path cost represents higher-speed transmission. For cost, the range is 1 to 200000000; the default value is derived from the media speed of the interface. Step 5 spanning-tree vlan vlan-id cost cost Example: Device(config-if)# spanning-tree vlan 10,12-15,20 cost 300 Configures the cost for a VLAN. If a loop occurs, spanning tree uses the path cost when selecting an interface to place into the forwarding state. A lower path cost represents higher-speed transmission.

• For vlan-id, 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. • For cost, the range is 1 to 200000000; the default value is derived from the media speed of the interface. Step 6 end Example: Device(config-if)# end Returns to privileged EXEC mode. Configuring Spanning Tree Protocol 17