Segunda prueba de compatibilidad spanning-tree entre switches Huawei y Cisco

Fecha: 8 de noviembre del 2022

 

Escenario

 

Se realiza la segunda de las pruebas de compatibilidad STP entre dos switches, un Huawei 5720 y dos Catalyst 2960,

esta vez armamos el famoso “triangulito” que se enseña en CCNA para ver la interacción con más de un switch

en la topología spanning-tree.

 

                             

1.- Verificación inicial:

 

1.1.- En el switch Huawei:

 

[HUAWEI]disp stp vlan 1

-------[VLAN 1 Global Info][Mode VBST]-------

Bridge ID                     :32768.3ce8-247d-1410

Bridge Diameter      :7

Config Times             :Hello 2s MaxAge 20s FwDly 15s

Active Times             :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC            :32768.005f-86a7-2a00 / 4 (el switch Cisco2960-1)

RootPortId                :128.4093 (GigabitEthernet0/0/1)

Root Type                  :Normal

BPDU-Protection    :Disabled

STP Converge Mode   :Normal

Time since last TC   :0 days 0h:1m:55s

Number of TC          :56

 ----[Port4093(GigabitEthernet0/0/1)][FORWARDING]----

 Port Role                    :Root Port

 Port Priority              :128

 Port Cost(Dot1D)    :Config=Auto / Active=4 (a un salto de 4 (un segmento de 1Gbps) hasta el root Cisco2960-1)

 Desg. Bridge/Port   :32768.005f-86a7-2a00 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit              :6 packets/hello

 Protection Type      :None

 Port STP Mode        :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent               :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][DISCARDING]----

 Port Role                    :Alternate Port

 Port Priority              :128

 Port Cost(Dot1D)   :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit              :6 packets/hello

 Protection Type     :None

 Port STP Mode       :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent               :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 

[HUAWEI]

 

 [HUAWEI]disp stp vlan 2

-------[VLAN 2 Global Info][Mode VBST]-------

Bridge ID                   :32768.3ce8-247d-1410

Bridge Diameter    :7

Config Times           :Hello 2s MaxAge 20s FwDly 15s

Active Times           :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC          :32768.005f-86a7-2a00 / 4 (a un salto de 4 (un segmento de 1Gbps) hasta el root Cisco2960-1)

RootPortId              :128.4093 (GigabitEthernet0/0/1)

Root Type                :Normal

BPDU-Protection  :Disabled

STP Converge Mode   :Normal

Time since last TC :0 days 0h:1m:55s

Number of TC        :42

 ----[Port4093(GigabitEthernet0/0/1)][FORWARDING]----

 Port Role                    :Root Port

 Port Priority              :128

 Port Cost(Dot1D)    :Config=Auto / Active=4

 Desg. Bridge/Port   :32768.005f-86a7-2a00 / 128.1

 Port Edged                 :Config=Default / Active=Disabled

 Point-to-point          :Config=Auto / Active=True

 Transit Limit               :6 packets/hello

 Protection Type       :None

 Port STP Mode         :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent                  :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received        :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][DISCARDING]----

 Port Role                    :Alternate Port

 Port Priority              :128

 Port Cost(Dot1D)    :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit              :6 packets/hello

 Protection Type      :None

 Port STP Mode        :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent                :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received       :0

          TCN: 0, Config: 0, RST: 0

 

[HUAWEI]

 

[HUAWEI]disp stp brief

 VLAN-ID   Port                            Role  STP  State             Protection

       1   GigabitEthernet0/0/1       ROOT  FORWARDING   NONE

       1   GigabitEthernet0/0/2       ALTE    DISCARDING      NONE

       2   GigabitEthernet0/0/1       ROOT  FORWARDING   NONE

       2   GigabitEthernet0/0/2       ALTE    DISCARDING      NONE

[HUAWEI]

 

1.2.- En el switch Cisco2960-1:

 

Cisco2960-1#sh spanning-tree

 

VLAN0001

  Spanning tree enabled protocol rstp

  Root ID    Priority    32769

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/1             Desg FWD 4         128.1    P2p

Gi1/0/2             Desg FWD 4         128.2    P2p Peer(STP)

 

VLAN0002

  Spanning tree enabled protocol rstp

  Root ID    Priority    32770

             Address     005f.86a7.2a00

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32770  (priority 32768 sys-id-ext 2)

             Address     005f.86a7.2a00

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/1             Desg FWD 4         128.1    P2p

Gi1/0/2             Desg FWD 4         128.2    P2p Peer(STP)

 

Cisco2960-1#

 

1.3.- En el switch Cisco2960-2:

 

Cisco2960-2#sh spanning-tree

 

VLAN0001

  Spanning tree enabled protocol ieee

  Root ID    Priority    4097

             Address     3ce8.247d.1410

             Cost        4   (a un salto de 4 (un segmento de 1Gbps) hasta el root Cisco2960-1)

             Port        1 (GigabitEthernet1/0/1)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32769  (priority 32768 sys-id-ext 1)

             Address     005f.86a7.c080

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/1             Desg FWD 4         128.1    P2p

Gi1/0/2             Root FWD 4         128.2    P2p

 

VLAN0002

  Spanning tree enabled protocol ieee

  Root ID    Priority    32770

             Address     005f.86a7.2a00 (el switch Cisco2960-1)

             Cost        4   (a un salto de 4 (un segmento de 1Gbps) hasta el root Cisco2960-1)

             Port        2 (GigabitEthernet1/0/2)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32770  (priority 32768 sys-id-ext 2)

             Address     005f.86a7.c080

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time  300 sec

 

Interface           Role Sts Cost      Prio.Nbr Type

------------------- ---- --- --------- -------- --------------------------------

Gi1/0/1             Desg FWD 4         128.1    P2p

Gi1/0/2             Root FWD 4         128.2    P2p

 

Cisco2960-2#

 

 

2.- Se cae el link entre Huawei y Cisco2960-1 (root STP):

 

 

2.1.- Se simula el corte de vínculo:

 

Cisco2960-1(config)#int gi1/0/1

Cisco2960-1(config-if)#shut (se simula el corte de vínculo)

Cisco2960-1(config-if)#

 

2.2.- Logs en switch Cisco2960-2:

 

Cisco2960-2#

Nov 7 21:11:05.747: STP: VLAN0001 Topology Change rcvd on Gi1/0/1

Nov 7 21:11:05.747: STP: VLAN0001 sent Topology Change Notice on Gi1/0/2

Nov 7 21:11:06.869: STP: VLAN0002 Topology Change rcvd on Gi1/0/1

Nov 7 21:11:06.869: STP: VLAN0002 sent Topology Change Notice on Gi1/0/2

Cisco2960-2#

 

2.3.- Logs en switch Huawei:

 

Nov  7 2022 21:11:04 HUAWEI %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEthernet0/0/1 has turned into DOWN state.

 

2.4.- Verificación spanning-tree en switch Huawei:

 

[HUAWEI]disp stp brief

 VLAN-ID   Port                        Role  STP State     Protection

       1   GigabitEthernet0/0/2        ROOT  FORWARDING    NONE

       2   GigabitEthernet0/0/2        ROOT  FORWARDING    NONE

[HUAWEI]

 

[HUAWEI]disp stp vlan 1

-------[VLAN 1 Global Info][Mode VBST]-------

Bridge ID                   :32768.3ce8-247d-1410

Bridge Diameter    :7

Config Times           :Hello 2s MaxAge 20s FwDly 15s

Active Times           :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC          :32768.005f-86a7-2a00 / 8  (a dos saltos de 4 (segmentos de 1Gbps) hasta el root)

RootPortId              :128.4092 (GigabitEthernet0/0/2)

Root Type                :Normal

BPDU-Protection  :Disabled

STP Converge Mode   :Normal

Time since last TC  :0 days 0h:0m:24s

Number of TC           :53

 ----[Port4093(GigabitEthernet0/0/1)][DOWN]----

 Port Role                    :Disabled Port

 Port Priority              :128

 Port Cost(Dot1D)   :Config=Auto / Active=65535

 Desg. Bridge/Port  :32768.3ce8-247d-1410 / 128.4093

 Port Edged               :Config=Default / Active=Disabled

 Point-to-point        :Config=Auto / Active=False

 Transit Limit             :6 packets/hello

 Protection Type     :None

 Port STP Mode       :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent               :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][FORWARDING]----

 Port Role                    :Root Port

 Port Priority              :128

 Port Cost(Dot1D)   :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit              :6 packets/hello

 Protection Type      :None

 Port STP Mode        :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent                :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received       :0

          TCN: 0, Config: 0, RST: 0

 [HUAWEI]

 

[HUAWEI]disp stp vlan 2

-------[VLAN 2 Global Info][Mode VBST]-------

Bridge ID                   :32768.3ce8-247d-1410

Bridge Diameter    :7

Config Times          :Hello 2s MaxAge 20s FwDly 15s

Active Times           :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC         :32768.005f-86a7-2a00 / 8  (a dos saltos de 4 (segmentos de 1Gbps) hasta el root)

RootPortId              :128.4092 (GigabitEthernet0/0/2)

Root Type                :Normal

BPDU-Protection  :Disabled

STP Converge Mode   :Normal

Time since last TC  :0 days 0h:5m:22s

Number of TC          :48

 ----[Port4093(GigabitEthernet0/0/1)][DOWN]----

 Port Role                    :Disabled Port

 Port Priority              :128

 Port Cost(Dot1D)    :Config=4 / Active=4

 Desg. Bridge/Port  :32768.3ce8-247d-1410 / 128.4093

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=False

 Transit Limit              :6 packets/hello

 Protection Type     :None

 Port STP Mode       :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent              :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][FORWARDING]----

 Port Role                :Root Port

 Port Priority          :128

 Port Cost(Dot1D)   :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged             :Config=Default / Active=Disabled

 Point-to-point      :Config=Auto / Active=True

 Transit Limit           :6 packets/hello

 Protection Type   :None

 Port STP Mode     :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent             :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received    :0

          TCN: 0, Config: 0, RST: 0

 

[HUAWEI]

 

3.- Se reestablece vínculo:

 

 

3.1.- Se levanta el enlcace en el switch Cisco2960-1:

 

Cisco2960-1(config)#int gi1/0/1

Cisco2960-1(config-if)#no shut

Cisco2960-1(config-if)#

 

3.2.- Verificación en el switch Huawei:

 

Nov  7 2022 21:15:33 HUAWEI %%01IFPDT/4/IF_STATE(l)[13]:Interface GigabitEthernet0/0/2 has turned into UP state.

 

[HUAWEI]disp stp vlan 1

-------[VLAN 1 Global Info][Mode VBST]-------

Bridge ID                   :32768.3ce8-247d-1410

Bridge Diameter    :7

Config Times           :Hello 2s MaxAge 20s FwDly 15s

Active Times           :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC          :32768.005f-86a7-2a00 / 4

RootPortId               :128.4093 (GigabitEthernet0/0/1)

Root Type                 :Normal

BPDU-Protection   :Disabled

STP Converge Mode   :Normal

Time since last TC  :0 days 0h:18m:19s

Number of TC         :65

 ----[Port4093(GigabitEthernet0/0/1)][FORWARDING]----

 Port Role                  :Root Port

 Port Priority            :128

 Port Cost(Dot1D)  :Config=Auto / Active=4

 Desg. Bridge/Port :32768.005f-86a7-2a00 / 128.1

 Port Edged              :Config=Default / Active=Disabled

 Point-to-point       :Config=Auto / Active=True

 Transit Limit            :6 packets/hello

 Protection Type    :None

 Port STP Mode      :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent              :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][DISCARDING]----

 Port Role                   :Alternate Port

 Port Priority             :128

 Port Cost(Dot1D)   :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit              :6 packets/hello

 Protection Type      :None

 Port STP Mode        :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent                :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received       :0

          TCN: 0, Confi : 0, RST: 0

 

[HUAWEI]disp stp vlan 2

-------[VLAN 2 Global Info][Mode VBST]-------

Bridge ID                    :32768.3ce8-247d-1410

Bridge Diameter   :7

Config Times          :Hello 2s MaxAge 20s FwDly 15s

Active Times          :Hello 2s MaxAge 20s FwDly 15s

Root ID / RPC         :32768.005f-86a7-2a00 / 4

RootPortId             :128.4093 (GigabitEthernet0/0/1)

Root Type               :Normal

BPDU-Protection :Disabled

STP Converge Mode   :Normal

Time since last TC  :0 days 0h:18m:33s

Number of TC        :59

 ----[Port4093(GigabitEthernet0/0/1)][FORWARDING]----

 Port Role                 :Root Port

 Port Priority           :128

 Port Cost(Dot1D)   :Config=4 / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-2a00 / 128.1

 Port Edged             :Config=Default / Active=Disabled

 Point-to-point      :Config=Auto / Active=True

 Transit Limit           :6 packets/hello

 Protection Type   :None

 Port STP Mode     :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent              :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 ----[Port4092(GigabitEthernet0/0/2)][DISCARDING]----

 Port Role                    :Alternate Port

 Port Priority              :128

 Port Cost(Dot1D)   :Config=Auto / Active=4

 Desg. Bridge/Port  :32768.005f-86a7-c080 / 128.1

 Port Edged                :Config=Default / Active=Disabled

 Point-to-point         :Config=Auto / Active=True

 Transit Limit             :6 packets/hello

 Protection Type     :None

 Port STP Mode       :VBST

 BPDU Encapsulation :Config=VBST / Active=VBST

 BPDU Sent              :0

          TCN: 0, Config: 0, RST: 0

 BPDU Received      :0

          TCN: 0, Config: 0, RST: 0

 

[HUAWEI]

 

4.- Resumen: el comportamiento es el esperado a este tipo de topología, podemos decir que pueden

convivir PVSTP+ con VBST mucho mas fácil que si se debiera implementar MST en ambos equipos.

 

 

(2022)  I was in Chinatown

Rosario, Argentina