12-24-2014 08:01 AM - edited 03-07-2019 10:00 PM
Hello!
I have very simple, and I guess, stupid question.
I understand how switches choose forwarding ports by calculation cost to root.
But how path from root to other switches is calculated?
Let's say we have just two switches, connected by two 1G links.
One of switches is root, how it will find which por use as designated?
As I see on my hardware root uses both.
But if one of links is 1G and another 10G? How root will choose which port to use?
Thank you!
12-24-2014 09:40 AM
Hi,
But if one of links is 1G and another 10G? How root will choose which port to use?
It is based on port cost. The lower the cost the better the route/port:
for 1Gig, the default cost is 4. For 10 Gig the default cost is 2. So it will choose the 10 gig port.
HTH
12-24-2014 08:13 PM
Yes, I think that link with less cost will be choosed.
But how? Is there any explanation how it works?
All manuals/examples I can find are about calculation path to root, to down from root.
Could you point me to manual with explanation how forwarding path is calculated down from root?
Thank you!
12-24-2014 08:54 PM
Yes, have a look at chapter-6 in this book. This is the best book with best explanation and examples on how STP works:
http://docstore.mik.ua/cisco/pdf/routing/Cisco%20Lan%20Switching.pdf
HTH
12-24-2014 09:31 PM
Thank you!
I'm mostly L3 guy, this is why I'm asked stupid question.
But , after some time of thinking I understood that root learn mac addresses from link choosed by down switch :-)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide