STP Port Cost and Port Priority
Also: STP Port CostSTP costport costSTP port priorityport priorityport IDspanning-tree costspanning-tree port-priority
STP port cost is based on link speed (short method: 10 Mbps = 100, 100 Mbps = 19, 1 Gbps = 4, 10 Gbps = 2) and root cost is the sum of costs on the path to the root bridge. Ties are broken by lowest neighbour bridge ID, then lowest neighbour port ID (port priority, default 128, plus port number).
NetworkChuck0
Not taught as a topic in NetworkChuck Free CCNA. Mentioned fewer than twice, if at all.
Jeremy's IT Lab7
- Day 20 Spanning Tree Protocol (Part 1)
STP Port CostDefault classic STP costs are 10 Mbps = 100, 100 Mbps = 19, 1 Gbps = 4 and 10 Gbps = 2. Root cost is the sum of outgoing interface costs on the path to the root bridge.
28:49This is an important point. The NEIGHBOR switch’s port ID is used to break the tie, not the local switch’s port ID. That’s why G0/2 was selected over G0/0, because G0/0 is connected to a higher port ID on SW1.
Said 10× - Day 20 Lab Analyzing STP
STP Port CostTwo Gigabit hops (4+4=8) beat one direct FastEthernet link (19). The cost column in show spanning-tree is only the local interface cost; show spanning-tree detail shows the full root path cost.
4:02…e connected to the same switch, SW3, so that is a tie as well. The final tie breaker is the neighbor switch’s port ID, the lowest one wins.
Said 4× - Day 21 Lab Configuring STP (PVST+)
STP Port Cost and Port PrioritySTP root cost is the sum of port costs to the root (19 per Fast Ethernet link) and can be changed with spanning-tree vlan X cost. Port priority (spanning-tree vlan X port-priority, max 240) forms part of the port ID, the last root port tiebreaker.
8:09Actually, it shouldn’t. Sender port ID is actually the last tiebreaker, after port cost and sender bridge ID.
Said 4× - Day 21 Spanning Tree Protocol (Part 2)
15:58…xadecimal 8 0 0 2. 8 0 in hexadecimal is equivalent to 128, which if you remember from day 20, is the default port priority.
Said 6× - Day 22 Rapid Spanning Tree Protocol
10:14First up, port costs were updated for rapid spanning tree. Classic spanning tree defines port speeds up to 10 Gbps, and I believe port speeds faster than this are all given a cost of 1.
Said 6× - Day 36 CDP & LLDP
11:54Okay last column is Port ID this tells you the Port ID on the neighboring device so R1 is connected to switch 1's g0000 interface and r2's g0000 interface make sure you know the difference between the local interface fie…
Said 5× - Day 23 Lab Configuring EtherChannel
20:31So the last tie-breaker is the neighboring switch's port ID, the lower port ID. So that is FastEthernet5 here. So, I think DSW2's FastEthernet5 should be the root port.
Said 3×
Related terms
Flashcards that test it
Jeremy's IT LabWhat are the classic STP port costs for 10 Mbps, 100 Mbps, 1 Gbps and 10 Gbps interfaces?
100, 19, 4 and 2.
Jeremy's IT LabList the root port selection criteria in order.
1) Lowest root cost; 2) lowest neighbor bridge ID; 3) lowest neighbor port ID.
Jeremy's IT LabWhen two links connect SW3 to the same neighbor with equal cost, whose port ID breaks the tie for SW3's root port?
The neighbor switch's port ID (the lowest one wins), not the local switch's.
Jeremy's IT LabWhat is the default STP port priority, and what does the port ID consist of?
128. Port ID = port priority + port number.
Jeremy's IT LabA captured BPDU shows port ID 0x8002. What are the port priority and port number?
Port priority 0x80 = 128 (the default); port number 2.
Jeremy's IT LabWhich interface command sets an STP cost of 100 for VLAN 1 on a port?
spanning-tree vlan 1 cost 100
Jeremy's IT LabWhich interface command sets a port's STP port priority to its highest possible value in VLAN 1?
spanning-tree vlan 1 port-priority 240 (a higher number means lower priority).
Jeremy's IT LabIn what order are root port tiebreakers applied?
Lowest root cost, then lowest neighbor (sender) bridge ID, then lowest neighbor (sender) port ID.