Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

set spantree portcost vs channelcost

Hello,

Does anyone know the difference in using set spantree portcost vs set spantree channelcost??

I am converting my Data Center LAN from spanning-tree PVST+ to Rapid STP. When removing uplinkfast during this change, all of my Access Layer Switch uplinks (channeled) will default to the original bandwidth determined portcosts. I'd like to keep my blocked ports down at the Access Layer Switches and was trying to see the differences between these 2 commands. What is the difference outside of the obvious, one is used on ports and the other is used on channels??

When I enter set spantree channel cost, the console displays this:

gv2d-D1> (enable) set spantree channelcost 1666 25

Port(s) 5/1-8 port path cost are updated to 40.

Channel 1666 cost is set to 25.

Warning: channel cost may not be applicable if channel is broken.

If I loose my channel could this be a problem??

Thanks for your help,

Tony

1 ACCEPTED SOLUTION

Accepted Solutions

Re: set spantree portcost vs channelcost

I'm pretty confident that's the case;-)

I could found this in the CatOS configuration guide:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/catos/8.x/configuration/guide/spantree.html#wp1195538

regards,

Francois

8 REPLIES
Hall of Fame Super Blue

Re: set spantree portcost vs channelcost

Tony

Yes that is exactly what it means. If you set the STP cost on the channel this will also adjust the port costs that make up the channel.

If the channel is then broken for some reason the ports will fall back to their original costs and this may or may not be the cost you need for you to get your STP topology the way you want.

Jon

New Member

Re: set spantree portcost vs channelcost

Jon,

Thank you so much for replying.

Do you know which method is prefered? Or which method will provide more stability??

A colleague of mine has told me that Cisco TAC has recommended using channelcost and I guess I am having a hard time with it because of what can happen if a channel breaks down.

Thanks again,

Tony

Hall of Fame Super Blue

Re: set spantree portcost vs channelcost

Tony

To be honest i have never used the channel cost so it would be wrong of me to say which is more reliable. Perhaps someone else can comment.

What you could do is ensure that the port costs are low enough that if the channel fails they will still block. Just a suggestion, would need testing.

Sorry i can't be more help.

Jon

New Member

Re: set spantree portcost vs channelcost

Hey no problem. Thanks for your input!!

Tony

Re: set spantree portcost vs channelcost

big disclaimer: It's been almost 10 years I've not worked on CatOS;-)

-1- If you set assign a cost to the member of a channel using portcost, all the members will assigned the same cost.

-2- If you assign a cost using the channelcost to a channel, then the channel as a whole (seen as a virtual interface) is assigned this cost.

So that's here I don't really remember how this works, but if you set the cost using method -1-, the whole channel will probably get a cost that is the cost of a member divided by the number of members (well, at least with the long path cost method, the result might be more difficult to predict with the short cost). While -2- would compute the individual cost of a member so that the channel gets the specified cost. Bottom line: play around with the CLI to find the cost that is appropriate to your design;-) Once a cost is set for a channel, I don't think there is any difference the way it was entered.

BTW, even in Rapid-PVST mode, the uplinkfast configuration as no impact on the way the protocol is behaving, it still tune the cost of the bridge and all its ports. We did that specially so that enabling rapid-pvst would not result in a change in the topology.

Regards,

Francois

New Member

Re: set spantree portcost vs channelcost

Francois,

Thanks for your reply.

I have been testing out different cost scenarios and I like your suggestion best, which is to enable the uplinkfast feature with Rapid STP.

Do you know if there is any Cisco literature identifying that uplinkfast will not affect Rapid STP??

Thanks again,

Tony

Re: set spantree portcost vs channelcost

I'm pretty confident that's the case;-)

I could found this in the CatOS configuration guide:

http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/catos/8.x/configuration/guide/spantree.html#wp1195538

regards,

Francois

New Member

Re: set spantree portcost vs channelcost

Francois,

Thanks again for your reply.

I did find this link too that gives a little more detail about uplinkfast & backbonefast with Rapid STP.

http://www.cisco.com/en/US/products/hw/switches/ps708/products_configuration_example09186a00807b0670.shtml#upback1

I think that should be enough for me to move forward.

Thanks again,

Tony

252
Views
0
Helpful
8
Replies