Wiki2 · Network Access · protocol

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

  1. 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×
  2. 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×
  3. 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×
  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×
  5. 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×
  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×
  7. 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