ITNuvoAkademiya
Academy homePackagesPlaylistsToolsSubnet calculatorSearchGlossary
CiscoCCNA · CCNA: networking fundamentals1. Introduction2. Network Fundamentals3. Network Access4. IP Connectivity5. IP Services6. IPv67. Security Fundamentals8. AutomationCCNP: Enterprise networks · coming soon
LinuxLinux: system administrator üçün · Linux for system administrators1. Getting to know Linux2. Working with text3. Users and permissions4. Processes and packages5. Inside the system6. Monitoring and logs7. NetworkingRed Hat Enterprise Linux · Red Hat Enterprise Linux: from beginner to advanced1. Getting started2. Packages3. Users and permissions4. SELinux5. Services6. Storage7. Networking8. Building services9. Boot and recovery10. DevOps11. Security and monitoring
FortinetFortiGate Administrator · FortiGate Administrator: from first login to ZTNA1. Getting to know FortiGate2. Routing, policy and NAT3. Security profiles4. Users and logs5. Resilience, SD-WAN and automation6. VDOM7. VPN and ZTNA8. Proxy9. DMZ
MonitoringZabbix · Zabbix: from installation to alerts1. Introduction2. Installation and the database3. Basics: groups, templates, users4. Connecting devices5. Alerts, Grafana and the API
VirtualizationProxmox VE · coming soonVMware ESXi · coming soon
My account / Sign in
AZENRU
← itnuvo.com

Tuning STP: cost, port priority, per-VLAN root, PortFast and Rapid PVST+

Lesson 3.1611 minIntermediateNovember 4, 2026

Sign in to read this lesson

You can change the root port with "spanning-tree cost". When the costs are equal, the neighbour's port ID (port priority + port number) decides. "spanning-tree port-priority" is configured on the root bridge side, because that switch sends the BPDUs. With PVST+ you can give each VLAN a different root bridge and spread traffic over the links; you verify with show spanning-tree summary. PortFast skips the listening and learning states on host ports, but does not disable STP. Protect it with BPDU Guard. "spanning-tree mode rapid-pvst" enables Rapid PVST+.

What you will learn

  • spanning-tree cost 500 (on an interface) changes the port's cost: the root port moves to another path. The total cost to the root is shown on the Cost line of show spanning-tree (19 + 19 = 38).
  • When the cost is equal, the neighbour's port ID (port priority.number, for example 128.15 < 128.16) decides. spanning-tree port-priority 16 is configured on the neighbour (BPDU-sending) switch. The value is a multiple of 16 (0–240).
  • With PVST+, a different root per VLAN: spanning-tree vlan 10 priority 4096 on A, vlan 20 on B, vlan 30 on C. Quick overview: show spanning-tree summary.
  • PortFast (spanning-tree portfast, or globally spanning-tree portfast default) puts a host port into forwarding immediately. It does not disable STP: when the port receives a BPDU it goes back to normal STP. Use it only on PC/server/printer ports, never on switch or hub ports.
  • Protect PortFast with BPDU Guard (spanning-tree bpduguard enable): a port that receives a BPDU goes err-disabled. Rapid PVST+: spanning-tree mode rapid-pvst (on every switch).

The lesson has 5 key points, an explanation and 5 questions. It opens with a package.