Calcolatore dell’elezione spanning tree
Il root bridge, ogni porta root, ogni porta designata e le porte che restano alternative o di backup in una piccola rete di switch descritta in poche righe, ogni passaggio con il confronto che lo ha deciso; e i path cost long (802.1t) e short (802.1D-1998) per velocità del link, con il valore predefinito documentato da ogni vendor.
RetiConservato in questo browser · La mia scrivania
Metodo di calcolo del path cost
bridge SW1 32768 00-00-5E-00-53-01: un nome, una priorità (un multiplo di 4096 da 0 a 61440) e un indirizzo MAC; termina la riga conshortolongper assegnare a quel bridge un proprio metodo di calcolo del path cost.link SW1:1 SW2:1 1G: due porte e una velocità (10M, 100M, 1G, 10G, 25G, 40G, 50G, 100G, 1T o 10T), oppurecost 4000al posto della velocità; tre o più porte formano un segmento condiviso.port SW1:2 priority 64oport SW1:2 cost 4000: una priorità di porta (un multiplo di 16, 128 per impostazione predefinita) o un costo per quella sola porta.vlan 10aggiunge l’ID VLAN a ogni priorità (la system ID extension);priority-format 802.1dlegge le priorità a 16 bit di 802.1D-1998. Un # inizia un commento.- Fino a 16 bridge, 32 link, 8 porte per segmento, 128 porte, 80 righe e 4000 caratteri.
Viene eseguito in locale nel tuo browser. Nulla viene inviato altrove.
Descrivi una rete di switch, un’istruzione per riga, oppure premi Esempio per l’esempio a sei bridge del corso (capitolo 2.4, slide 259).
Endpoint dell’APIGEThttps://ronutz.com/api/v1/stp-election-calculatorDocumentato, non servito. Apre la specifica.
Riferimenti
- IEEE 802.1, modulo YANG ieee802-dot1q-rstp, revisione 2025-02-04: bridge-id (priorità a 4 bit, system ID extension a 12 bit, indirizzo a 48 bit), port-id (priorità a 4 bit, numero di porta a 12 bit), port-role, root-path-cost, port-path-cost (da 1 a 200000000)
- IEEE 802.1, IEEE8021-SPANNING-TREE-MIB, LAST-UPDATED 2022-11-08 (pubblicata con IEEE 802.1Q-2022): ieee8021SpanningTreePriority, ...PortPriority, ...PortPathCost
- RFC 4188, Definitions of Managed Objects for Bridges, settembre 2005: dot1dStpPriority, dot1dBaseBridgeAddress, dot1dStpPortPriority, dot1dStpPortPathCost, dot1dStpPortPathCost32, dot1dStpPortState
- RFC 9542, IANA Considerations and IETF Protocol and Documentation Usage for IEEE 802 Parameters, aprile 2024 (BCP 141, sostituisce la RFC 7042): sezioni 2.1.1 e 2.1.4
- IEEE SA, IEEE 802.1D-2004, Media Access Control (MAC) Bridges: Superseded Standard, pubblicazione: 09/06/2004, sostituito da 802.1Q-2014
- IEEE SA, IEEE 802.1Q-2022, Bridges and Bridged Networks: Active Standard, pubblicazione: 22/12/2022
- Juniper Networks, Spanning Tree Protocols User Guide, Junos OS: panoramica dei protocolli spanning tree (priorità del bridge, elezione del root bridge e del designated bridge, ruoli e stati delle porte)
- Juniper Networks, Junos OS CLI Reference: cost (Protocols STP, RSTP, VSTP, MSTP)
- Juniper Networks, Junos OS CLI Reference: show spanning-tree interface (output di esempio)
- MikroTik, RouterOS Manual 7.24: Bridging and Switching (impostazioni del bridge: priority, protocol-mode, port-cost-mode; impostazioni delle porte: path-cost, priority)
- MikroTik, RouterOS Manual 7.24: Spanning Tree Protocol user guide (valori predefiniti, processo di elezione)
- Extreme Networks, Switch Engine v33.7.1 Command References: configure stpd ports cost
- Extreme Networks, Switch Engine v33.7.1 Command References: configure stpd priority
- Extreme Networks, Fabric Engine v9.4 User Guide: Configure Multiple Spanning Tree Protocol
- Cisco, Layer 2 Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches): Configuring Spanning Tree Protocol (consultazione tramite WebFetch: il sito ha rifiutato curl)
- Cisco, Layer 2 Configuration Guide, Cisco IOS XE 26.x (Catalyst 9300): Configuring Spanning Tree Protocol (consultazione tramite WebFetch: il sito ha rifiutato curl)
- Cisco, STP Configuration Guide, Cisco IOS XE 17: Spanning Tree Protocol (ultimo aggiornamento: 17 luglio 2026) (consultazione tramite WebFetch: il sito ha rifiutato curl)
- Cisco, Command Reference, Cisco IOS XE 17.18.x (Catalyst 9300 Switches): Layer 2/3 Commands, spanning-tree pathcost method, spanning-tree cost, show spanning-tree (read in a browser on 2026-11-08: the site refuses automated reads)
- Cisco, Command Reference, Cisco IOS XE 26.x.x (Catalyst 9300 Switches): Layer 2/3 Commands, spanning-tree pathcost method (read in a browser on 2026-11-08: the site refuses automated reads)
- Huawei, S5700 and S6700 V200R025C00 Command Reference: STP/RSTP/MSTP/VBST Configuration Commands, stp pathcost-standard (Table 5-92), stp cost, stp mode (read in a browser on 2026-11-08: the site refuses automated reads)
- Cisco, Troubleshoot STP Root Inconsistency Due to Path Cost Mismatch, documento 225591, ultimo aggiornamento: 11 marzo 2026 (consultazione tramite WebFetch: il sito ha rifiutato curl)
- HPE Aruba Networking, AOS-CX 10.16 Layer-2 Bridging Guide (6300/6400): spanning-tree cost (consultazione tramite WebFetch: il sito ha rifiutato curl)
- Arista Networks, EOS 4.37.0F User Manual: Spanning Tree Protocol (consultazione tramite WebFetch: il sito ha rifiutato curl)
- Cisco Networking Academy, Scaling Networks Companion Guide, Cisco Press, 2014 (ISBN 978-1-58713-328-2), capitolo 2: tabella 2-1
- RFC Editor, indice delle RFC (XML): lo stato attuale delle RFC 4188, RFC 9542 e RFC 7042
- RFC 3986, Uniform Resource Identifier (URI): Generic Syntax, gennaio 2005: sezione 3.5 (frammento)