2-589
Catalyst 6500 Series Switch Command Reference—Release7.6
78-15328-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 module 2 to 19:
Console> (enable) set spantree portcost 2/12 19
Spantree port 2/12 path cost set to 19.
Console> (enable)
Related Commands se t spa ntree de faul tco stmod e
show spantree