Escenario de
pruebas de STP
Clase: Exploration 3 Fecha: 23/5 del 2013
Dado el siguiente escenario en Packet Tracer
determinar los solicitado en el layout y responder por escrito en un .txt, las
pruebas y
las respuestas de este ejemplo las realizó Mariano
Andrés de Pergamino:
1) Determinar el root SW
1) El sw Root es el de Core por tener la mac mas baja
0002.17A5.228D.
2) Determinar quién será root SW en caso de falla del
primero
2) En caso de que falle el sw de core, el sw 3 pasaria
a ser el sw root por poseer la mac 000C.85C9.AB73 que seria la mas baja.
3) Determinar porqué se elige Switch1 como
distribución layer
3) Se elije el sw1 como layer distribucion para tener
la mayo redundancia posible con el stp. Y configurandolo como priority de la
vlan2
se puede
lograr el balanceo de carga de las vlan1 y 2.
4) En caso de falla de Switch1, que camino toma PC1 a
PC 2 ?
4) En el caso de que fallara el sw1 el camino que
tomaria la PC1 para llegar a la PC2 seria del sw3 al sw2 y del sw2 al sw5 es el
camino
mas corto ya
que tiene 38 de costo.
5) ConfigurarSwitch2 como root de la vlan 1
Switch2#sh runn
Building configuration...
---resumido---
!
hostname Switch2
!
!
spanning-tree mode pvst
spanning-tree vlan 1 priority 28672
!
6) Crear vlan 2 y propagarla vía VTP
Core>sh vtp stat
VTP Version : 2
Configuration Revision : 7
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
VTP Operating Mode : Server
VTP Domain Name : CCNA
---resumido---
Core>sh vtp pass
VTP Password: cisco
Core>sh vlan
VLAN Name Status Ports
---- -------------------------------- ---------
-------------------------------
1
default
active Fa0/1, Fa0/2, Fa0/3,
Fa0/4
Fa0/5, Fa0/6,
Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14,
Fa0/15, Fa0/16
Fa0/17, Fa0/18,
Fa0/19, Fa0/20
Fa0/21, Fa0/22,
Fa0/23, Fa0/24
2
VLAN0002
active
---resumido---
7) Configurar Switch1 como root de la vlan 2
Switch1#sh runn
Building configuration...
---resumido---
!
hostname Switch1
!
!
spanning-tree mode pvst
spanning-tree vlan 2 priority 28672
!
8) Lograr que Swtich1 y 2 reenvíen una vlan por ports
diferentes a Switch3 y 5
(balanceo
de carga)
Switch1>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/22
on 802.1q trunking 1
Fa0/23
on 802.1q trunking 1
Fa0/24
on 802.1q trunking 1
Gig1/1
on 802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/22
1,2
Fa0/23
1,2
Fa0/24
1,2
Gig1/1
1,2
Switch1>
Switch2>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/22
on 802.1q trunking 1
Fa0/23
on 802.1q trunking 1
Fa0/24
on 802.1q trunking 1
Gig1/1
on 802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/22
1,2
Fa0/23
1,2
Fa0/24
1,2
Gig1/1
1,2
Switch2>
Switch3#sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
Fa0/24
auto n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/23 1
(una vlan por cada port)
Fa0/24 2
Switch3#
Switch4>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
Fa0/24
auto n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/23 1
(una vlan por cada port)
Fa0/24 2
Switch4>
Switch5>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
Fa0/24
auto n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/23 2
(una vlan por cada port)
Fa0/24 1
Switch5>
9) Probar y documentar que sucede cuando los enlaces
caen.
9) Sw1 queda con la prioridad de vlan2 y el sw2 queda
con la prioridad de vlan1.
El sw3 por
el puerto fa0/24 reenvia la vlan2 y el puerto fa0/23 esta bloqueado, para la
vlan1 el puerto fa0/23 reenvia la vlan y
el puerto 0/24 esta boqueado. (ver mas arriba)
9.1) Si realizo un shut en el port fa/24 del sw3 el stp
calcula el nuevo camino y habilita el port fa0/23 con un costo para llegar
a la pc2 de 19.
Verificación
%LINK-5-CHANGED: Interface FastEthernet0/24, changed
state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/24, changed state to down
Switch3#sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/23
1,2 (ambas vlan)
Switch3#
%LINK-5-CHANGED: Interface FastEthernet0/24, changed
state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/24, changed state to up
9.2) Si realizo un shut en el port fa/23 del sw3 el stp
calcula el nuevo camino y habilita el port fa0/24 con un costo para llegar
a la pc2 de 19.
Verificación
%LINK-5-CHANGED: Interface FastEthernet0/23, changed
state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/23, changed state to down
Switch3#sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/24 auto
n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/24
1,2 (ambas vlan)
Switch3#
9.3) Si apago el sw1 stp calcula el nuevo camino y habilita
el port fa0/23 con un costo para llegar a la pc2 de 19, y el sw core
pasa a ser sw root para la vlan2 por tener la mac
mas baja con un costo de 23.
Verificación
Core>sh spann
VLAN0001
Spanning
tree enabled protocol ieee
Root
ID Priority 28673
Address 0060.5C87.221C
Cost 4
Port
26(GigabitEthernet0/2)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
---resumido---
VLAN0002
Spanning
tree enabled protocol ieee
Root
ID Priority 32770
Address 0002.17A5.228D
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 0002.17A5.228D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- --------
--------------------------------
Gi0/2
Desg FWD 4 128.26 P2p
Core>
9.4) Si apago las interfaces del sw4 no sucede nada entre
la pc1 y pc2.
9.5) Si apago el sw2 stp calcula el nuevo camino y
habilita el port fa0/24 con un costo para llegar a la pc2 de 19, y el sw core
pasa a ser sw root para la vlan1 por tener la mac
mas baja con un costo de 23.
Verficación
Core>sh spann
VLAN0001
Spanning
tree enabled protocol ieee
Root
ID Priority 32769
Address 0002.17A5.228D
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 0002.17A5.228D
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20
Interface
Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- --------
--------------------------------
Gi0/1
Desg FWD 4 128.25 P2p
VLAN0002
Spanning
tree enabled protocol ieee
Root
ID Priority 28674
Address 0060.2FAE.CA9C (Swtich 1)
Cost 4
Port
25(GigabitEthernet0/1)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge
ID Priority 32770 (priority 32768
sys-id-ext 2)
Address 0002.17A5.228D
Core>
9.6) Si apago la interface f0/24 del sw5 el stp calcula
el nuevo camino y habilita la interface f0/24 para reenviar las tramas de l
vlan1.
Verficación
%LINK-5-CHANGED: Interface FastEthernet0/24, changed
state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/24, changed state to down
Switch5>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
---resumido---
Port
Vlans in spanning tree forwarding state and not pruned
Fa0/23
1,2 (ambas vlan)
Switch5>
%LINK-5-CHANGED: Interface FastEthernet0/24, changed
state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24,
changed state to up
9.7) Si apago la interface f0/23 del sw3 y la interface
f0/23 del sw5 el stp calcula el nuevo camino de la pc1 y pc 2 con un costo de
76.
Verficación
%LINK-5-CHANGED: Interface FastEthernet0/23, changed
state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/23, changed state to down
Switch5>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/24
auto n-802.1q trunking 1
---resumido---
Port Vlans in spanning tree forwarding state
and not pruned
Fa0/24
1,2 (ambas vlan)
Switch5>
9.8) Otra última prueba.
Verficación
Switch4>sh int trunk
Port
Mode Encapsulation Status Native vlan
Fa0/23
auto n-802.1q trunking 1
Fa0/24
auto n-802.1q trunking 1
Port
Vlans allowed on trunk
Fa0/23
1-1005
Fa0/24
1-1005
Port
Vlans allowed and active in management domain
Fa0/23
1,2
Fa0/24
1,2
Port Vlans in spanning tree forwarding state
and not pruned
Fa0/23
1,2 (ambas vlan)
Fa0/24
1,2 (ambas vlan)
Switch4>
(2013) Networking and LSD
Rosario, Argentina