STP Path Cost – Cost Between Different Bandwidth Interfaces

ciscospanning tree

I've got a terrible doubt that does not let me sleep for last few days. I have a network with different bandwidth interfaces (Gi0/2 and F0/2). The interfaces to which I'm referring are the ones inside the blue "circle".

I know that the cost for Gi0/2 is 4, and the cost for Fa0/2 is 19.

The thing is that I need to get the cost of that segment, but I'm really confused because I don't really know whether i make the sum of the 2 values. I mean 4 + 19 = 23 as the cost of the link, or I assume that the cost is the biggest value of both interfaces. For example, in this case would be Fa0/2 be a cost of 19, or if a take the cost of each one as separate value. For example, if I'm referring to Switch 2, do I take the cost of 4 because of Gi0/2 by default?

I canĀ“t sleep because im trying to get certified, but I don't know how this concept works for STP

If someone can help me i will appreciate it a lot.

enter image description here

Best Answer

An ethernet connection such as you describe will only connect at 100 Mbps (FastEthernet). You are incorrect that the cost of G0/2 is 4 because it connects at 100 Mbps, then the cost is 19.

For STP, a switch looks at the cost on its interface for the link because the cost of a link is the same on both ends, there is only one cost for the link. You only add costs for multiple links to the root.

Related Topic