beautypg.com

25 spanning-tree instance path-cost – CANOGA PERKINS 9175 Command Reference User Manual

Page 119

background image

CanogaOS Command Reference

7-16

The Multiple Spanning Tree Protocol uses port priority as a tiebreaker to determine which port should

forward frame for a particular instance on a LAN, or which port should be the root port for an instance. A

lower value implies a better priority. In the case of the same priority, the interface index will serve as the

tiebreaker, with the lower-numbered interface being preferred over others.

The permitted range is 0-240. The priority values can only be set in increments of 16.

Examples

Switch# configure terminal

Switch(config)# interface eth-0-1

Switch(config-if)# spanning-tree 3 priority 112

Related Commands

7.25 spanning-tree instance path-cost

Use this command to set the cost of a path associated with an interface. Use the no parameter with this

command to restore the default cost value of the path.


Command Syntax

spanning-tree instance instance-id path-cost cost

no spanning-tree instance instance-id path-cost

instance-id

Specify the identifier.

cost

Specify the cost of path in the range of <1-200000000> (a lower path-cost

indicates a greater likelihood of the specific interface becoming a root).

Command Mode

Interface mode

Default

Assuming a 10 Mb/s link speed, the default value is configured as 2,000,000.

Usage

Before you can use this command to set a path-cost in a VLAN configuration, you must explicitly add an

MST instance to a port using the bridge-group instance command (see the example below).

Examples

Switch# configure terminal

Switch(config)# spanning-tree mst configuration

Switch(config-mst)# instance 3 vlan 3

Switch(config-mst)# exit

Switch(config)# interface eth-0-1

Switch(config-if)# spanning-tree instance 3 path-cost 1000

Related Commands