beautypg.com

Spanning-tree cost – Brocade Network OS Command Reference v4.1.0 User Manual

Page 1276

background image

1238

Network OS Command Reference

53-1003115-01

spanning-tree cost

2

spanning-tree cost

Changes an interface's spanning-tree port path cost.

Synopsis

spanning-tree cost cost

Operands

cost

Specifies the path cost for the Spanning Tree Protocol (STP) calculations.
Valid values range from 1 through 200000000.

Defaults

The default path cost is 200000000.

Command Modes

Interface subtype configuration mode

Description

Use this command to configure the path cost for spanning-tree calculations.

Usage Guidelines

Lower path cost indicates a greater chance of becoming root.

If xSTP is enabled over VCS, this command must be executed on all the RBridge nodes.

Examples

To set the port cost to 128:

switch(config)# interface tengigabitethernet 0/1

switch(conf-if-te-0/1)# spanning-tree cost 128

See Also

show spanning-tree