0% found this document useful (0 votes)
20 views

Cheat Sheet Connectoway - STP

The document provides a comprehensive overview of Spanning Tree Protocols (STP), including legacy STP, VBST, RSTP, and MST, detailing their algorithms, definitions, instances, and configurations. It outlines the operation of STP, including the selection of root bridges and designated ports, as well as configurations for MSTP and STP protections. Additionally, it includes examples of STP configurations and troubleshooting commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Cheat Sheet Connectoway - STP

The document provides a comprehensive overview of Spanning Tree Protocols (STP), including legacy STP, VBST, RSTP, and MST, detailing their algorithms, definitions, instances, and configurations. It outlines the operation of STP, including the selection of root bridges and designated ports, as well as configurations for MSTP and STP protections. Additionally, it includes examples of STP configurations and troubleshooting commands.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

STP – PARTE 01

Protocolos Spanning Tree


STP Legado VBST RSTP MST
Algoritmo Legado ST Legado ST Rapid ST Rapid ST
Definição 802.1d Huawei 802.1w 802.1s
Instâncias Uma Por VLAN Uma Configurável
Tronco N/A 802.1q N/A 802.1q, ISL
Comparação Instâncias Protocolos Spanning Tree
STP VBST MST
Root VLAN1, 10 Root VLAN 20, 30 Root MSTI 0 Root MSTI 1 Root

All VLANs VLAN 1 MSTI 0 (1,10)

VLAN 10 MSTI 1 (20,30)


VLAN 20

VLAN 30

Formato BPDU Especificações Spanning Tree Custo dos Links


Campo Byte Banda Custo
Protocol ID 2 100Mbps 199.999
802.1s 802.1q - 2003 802.1q - 2005
PVI 1 1Gbps 20.000
BPDU Type 1 10Gbps 2000
Flags 1 802.1d - 1998 802.1d - 2004 40Gbps 500
Root ID 8 100Gbps 200
RPC 4
802.1q - 1998 802.1w
Bridge ID 8 Padrão 802.1t
Port ID 2
Message Age 2 VBST Estados das Portas
Max Age 2 Legado ST Rapid ST
Hello Time 2 IEEE 802.1d (1998) - Obsoleto - STP Legado Disabled Discarding
Forwarding Delay 2 IEEE 802.1w - Rapid STP (RSTP) Blocking Discarding
IEEE 802.1d (2004) - Substituiu o STP Legado por RSTP Listening Discarding
IEEE 802.1s - Introduziu o Multiple Spanning Tree Learning Learning
IEEE 802.1q (2003) - Adicionou MST para 802.1q Forwarding Forwarding
VBST - Proprietário Huawei
Operação do Spanning Tree Papéis das Portas
1. Determinar a root bridge A bridge que anuncia o menor Bridge ID se torna a root bridge Legado ST Rapid ST
2. Selecionar a porta raíz Cada bridge seleciona sua porta primária voltada para a porta raíz Root Root
3. Selecionar portas designadas Uma porta designada é selecionada por segmento Designated Designated
4. Bloquear portas com loops Todas as portas não raíz e não designadas são bloqueadas Blocking Alternate
Blocking Backup
STP – PARTE 02
Configuração do STP Formato Bridge ID
[Switch]stp mode stp 4 12 48
[Switch]stp enable
Pri Sys ID Ext MAC Address
[Switch]stp priority 4096
Configuração do MSTP Prioridade - Prioridade configurável de 4bits (configurável de
[Switch]stp enable 0 a 61440, em incrementos de 4096)
[Switch]stp mode mstp System ID Extension - Valor de 12 bits obtido do número da
[Switch]stp region-configuration VLAN
[Switch-mst-region]region-name MSTP MAC Address -Valor de 48 bits para garantir a unicidade
[Switch-mst-region]revision-level 1 Seleção do Caminho
[Switch-mst-region]instance 1 vlan 1 to 10 1. Prefira o vizinho que anunciou o menor Root ID
[Switch-mst-region]instance 2 vlan 11 to 20 2. Prefira o vizinho que anunciou o menor custo para o root
[Switch-mst-region]active region-configuration 3. Prefira o vizinho com o menor bridge ID
[Switch-mst-region]quit 4. Prefira o ID da porta mais baixa do remetente
[Switch]stp instance 1 priority 4096 Melhorias do STP
[Switch]stp instance 2 priority 8192 Edge Port - Porta diretamente conectada ao terminal do
Configuração da porta Edge usuário. Ativa a transição direta do estado Disable para o
[Switch]stp edged-port default Forwarding
Configurações Proteções STP Proteções do Spanning Tree
[Switch]stp bpdu-protection BPDU Protection - Protege contra ataques de BPDU. Ao
[Switch-GigabitEthernet0/0/1]stp root-protection receber um BPDU o switch coloca a porta em shutdown
[Switch-GigabitEthernet0/0/1]stp loop-protection Root Protection - Evita loop na rede causado pelo
Troubleshooting recebimento de um bridge ID maior.
[Switch]display stp Loop Protection - Bloqueia a porta raíz para impedir a
[Switch]display stp brief ocorrência de loops.
[Switch]display stp interface Giga0/0/1
STP – PARTE 03
Exemplo de Configuração

G0/0/15 G0/0/15 Verificando

[SW1]display stp brief


G0/0/12
G0/0/13
MSTID Port Role STP State Protection
0 GigabitEthernet0/0/12 DESI FORWARDING NONE
0 GigabitEthernet0/0/15 ROOT FORWARDING NONE
G0/0/12
G0/0/13
1 GigabitEthernet0/0/12 DESI FORWARDING NONE
1 GigabitEthernet0/0/15 DESI FORWARDING NONE
2 GigabitEthernet0/0/12 DESI FORWARDING NONE
Trunk VLANs 10,20
2 GigabitEthernet0/0/15 ROOT FORWARDING NONE

[SW1]stp enable SW1 [SW2]display stp brief


[SW1]stp mode mstp MSTID Port Role STP State Protection
[SW1]stp region-configuration 0 GigabitEthernet0/0/13 DESI FORWARDING NONE
[SW1-mst-region]region-name HUAWEI 0 GigabitEthernet0/0/15 DESI FORWARDING NONE
[SW1-mst-region]revision-level 1 1 GigabitEthernet0/0/13 DESI FORWARDING NONE
[SW1-mst-region]instance 1 vlan 10 1 GigabitEthernet0/0/15 ROOT FORWARDING NONE
[SW1-mst-region]instance 2 vlan 20 2 GigabitEthernet0/0/13 DESI FORWARDING NONE
[SW1-mst-region]active region-configuration 2 GigabitEthernet0/0/15 DESI FORWARDING NONE
[SW1-mst-region]quit
[SW1]stp instance 1 priority 4096 [SW3]display stp brief
[SW1]stp instance 2 priority 8192 MSTID Port Role STP State Protection
0 GigabitEthernet0/0/2 DESI FORWARDING NONE
[SW2]stp enable SW2 0 GigabitEthernet0/0/12 ALTE DISCARDING NONE
[SW2]stp mode mstp 0 GigabitEthernet0/0/13 ROOT FORWARDING NONE
[SW2]stp region-configuration 1 GigabitEthernet0/0/12 ROOT FORWARDING NONE
[SW2-mst-region]region-name HUAWEI 1 GigabitEthernet0/0/13 ALTE DISCARDING NONE
[SW2-mst-region]revision-level 1 2 GigabitEthernet0/0/12 ALTE DISCARDING NONE
[SW2-mst-region]instance 1 vlan 10 2 GigabitEthernet0/0/13 ROOT FORWARDING NONE
[SW2-mst-region]instance 2 vlan 20
[SW2-mst-region]active region-configuration Topologia após a atuação do MSTP
[SW2-mst-region]quit
[SW2]stp instance 1 priority 8192
Instância 01 Instância 02
[SW2]stp instance 2 priority 4096
G0/0/15 G0/0/15 G0/0/15 G0/0/15

[SW3]stp enable SW3 G0/0/12 G0/0/12


G0/0/13 G0/0/13
[SW3]stp mode mstp
[SW3]stp region-configuration
G0/0/12 G0/0/12
G0/0/13 G0/0/13
[SW3-mst-region]region-name HUAWEI
[SW3-mst-region]revision-level 1
[SW3-mst-region]instance 1 vlan 10
[SW3-mst-region]instance 2 vlan 20
[SW3-mst-region]active region-configuration
[SW3-mst-region]quit

You might also like