STP Port Role Selection
Last updated
Last updated
The switch with the lowest bridge ID is elected as the root bridge. All ports on the root bridge are designated ports (forwarding state). Root bridge selection:
Lowest bridge ID.
Each remaining switch will select ONE of its interfaces to be its root port. The interface with the lowest root cost will be the root port. Root bridge selection:
Lowest root cost.
Lowest neighbor bridge ID.
Lowest neighbor port ID.
Each remaining collision domain will select one interface to be a designated port (forwarding state). The other port in the collision will be non-designated (bocking). Designated port selection:
The interface on the switch with the lowest root cost.
The interface on the switch with the lowest bridge ID.
Speed | STP Cost |
---|---|
10 Mbps | 100 |
100 Mbps | 19 |
1 Gbps | 4 |
10 Gbps | 2 |
I was advertised a cost of 0 on G0/0. My interface cost = 4. Total cost via G0/0 = 4.
I was advertised a cost of 4 on G0/1. My interface cost = 4. Total cost via G0/1 = 8.
The ports connected to another switch's root port must be designated. Because the root port is the switch's path to the root bridge, another switch must not block it.
STP Port ID = port priority (default 128) + port number.