Move the spanning-tree blocked ports

Posted on 2008-10-22
Last Modified: 2008-10-24

I have actually a loop of 2950 Series Switch (7 switchs in the loop), I implement spanning-tree pvst on each swith.
Then 1 port is blocked by spanning-tree, on the switch 5.
Whereas, I want to block the port 24 of the switch number 7. How can I do this, I suppose I can fix a cost. They have all 19 as cost  on FastEthernet and 4 for the Giga interface. (show spanning-tree)

Which procedure or command line can I use to fix the blocked port on a port I want.

Thanks in advance for your answer to my issue, it's urgent.
Question by:croustimiel
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 21

Expert Comment

ID: 22784241
take a look here:

spanning-tree vlan 20,40,200 port-priority 64


Expert Comment

ID: 22785286
On switch 7, port 24 (if this is the uplink you want to block on) you want to increase the spanning tree port cost so that it blocks on that uplink, use:

spanning-tree cost 200
LVL 32

Accepted Solution

harbor235 earned 500 total points
ID: 22785971

Port cost will change the port cost for all vlans, remember, PVST is a seperate spanning tree for each vlan.
If you want to manipulate the spanning tree on a per vlan basis then you can use the following;

Also rememeber, that all costs are configured from interface config mode;

switch# config t
switch#(conf) int X
switch#(conf-int) spanning-tree vlan X cost Y

There are default costs for each port type;

100 Mbit/s 19
155 Mbit/s 14
200 Mbit/s 12
622 Mbit/s 6
1 Gbit/s 4
2 Gbit/s 3
10 Gbit/s 2

harbor235 ;}

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Router Question 12 87
Stack 2x HP ProCurve 5406zl Switches 9 48
VLAN Configuration on Cisco Switch 8 48
Logging into A Cisco switch from another switch or router 2 54
I see many questions here on Experts Exchange regarding switch port configurations and trunks. This article is meant for beginners in the subject to help to get basic knowledge about Virtual Local Area Network (VLAN (…
I recently attended Cisco Live! in Las Vegas, a conference that boasted over 28,000 techies in attendance, and a week of hands-on learning hosted by a solid partner with which Concerto goes to market.  Every year, Cisco displays cutting-edge technol…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question