2-617
Catalyst 6500 Series Switch Command Reference—Release8.1
78-15474-01
Chapter2 Catalyst 6500 Series Switch and ROM Monitor Commands
set spantree portcost
Command Types Switch command.
Command Modes Privileged.
Usage Guidelines If the spanning tree mode is short and long or MISTP, valid cost values are from 1 to 65535; otherwise,
valid cost values are from 1 to 2000000.
This command is not supported by the NAM.
The Spanning Tree Protocol uses port path costs to determine which port to select as a forwarding port.
You should assign lower numbers to ports attached to faster media (such as full duplex) and higher
numbers to ports attached to slower media.
Examples This example shows how to set the port cost for port 12 on mod ule 2 t o 1 9:
Console> (enable) set spantree portcost 2/12 19
Spantree port 2/12 path cost set to 19.
Console> (enable)
Related Commands set spantree defaultcostmode
show spantree