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

show spanning-tree and choosing the root bridge

Lesson 3.1510 minIntermediateNovember 4, 2026

Sign in to read this lesson

Spanning tree is on by default on Cisco switches. show spanning-tree shows, per VLAN, the root bridge information (Root ID, cost, root port), the local switch's Bridge ID (priority + sys-id-ext), the timers, and each interface's role (Root, Desg, Altn) and state (FWD, BLK). From the output of three switches you can draw the whole topology. There are two ways to change the root bridge: the "spanning-tree vlan 1 root primary" macro and the "spanning-tree vlan 1 priority 4096" command. The priority must be a multiple of 4096.

What you will learn

  • show spanning-tree is the most important STP command. The Root ID section shows the root bridge and the cost to reach it; Port is the root port. On the root itself it says "This bridge is the root".
  • Bridge ID: Priority 32769 (priority 32768 sys-id-ext 1). sys-id-ext = the VLAN number, which the switch adds to the priority.
  • The interface table: Role (Root, Desg, Altn), Sts (FWD, BLK), Cost (100 Mbit = 19), Prio.Nbr (port priority.port number, for example 128.16), Type (P2p).
  • Changing the root bridge: spanning-tree vlan 1 root primary (a macro: sets the priority to 24576 or below the current root) or spanning-tree vlan 1 priority 4096 (a multiple of 4096, 0–61440).
  • When the root changes, the whole topology is recalculated: other ports may be blocked. So plan the root bridge in advance on the core switch. For a backup root use root secondary (28672).

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