No. We see two designated ports, and one root port. A root bridge will have no root ports. Since the root port is connected to Gi10/03, it suggests DSW2 is the root bridge.
Is DSW1 the root bridge in VLAN 20?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
DSW1#show spanning-tree vlan 20 VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 32788 Address 0001.C912.B090 Cost 4 Port 3(GigabitEthernet1/0/3) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20) Address 000C.856A.50BD Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
DSW1(config)#do sh spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 24586 Address 000C.856A.50BD This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24586 (priority 24576 sys-id-ext 10) Address 000C.856A.50BD Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
DSW1(config)#do sh spanning-tree vlan 20 VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 28692 Address 000C.856A.50BD This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 28692 (priority 28672 sys-id-ext 20) Address 000C.856A.50BD Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
There is an issue here. DSW1 for VLAN 20 has been made the root bridge: This bridge is the root; this is because DSW1 has a priority of 28692 now, which is lower than DSW2. DSW2 has not been configured yet.
DSW1(config)#int vlan 10 DSW1(config-if)# DSW1(config-if)#standby ? <0-4095> group number ip Enable HSRP and set the virtual IP address ipv6 Enable HSRP IPv6 preempt Overthrow lower priority Active routers priority Priority level timers Hello and hold timers track Priority Tracking version HSRP version DSW1(config-if)#standby version 2 DSW1(config-if)#standby 10 ? ip Enable HSRP and set the virtual IP address ipv6 Enable HSRP IPv6 preempt Overthrow lower priority Active routers priority Priority level timers Hello and hold timers track Priority Tracking DSW1(config-if)#standby 10 ip ? A.B.C.D Virtual IP address <cr> DSW1(config-if)#standby 10 ip 10.0.10.254 DSW1(config-if)# %HSRP-6-STATECHANGE: Vlan10 Grp 10 state Init -> Init
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Speak -> Standby
%HSRP-6-STATECHANGE: Vlan10 Grp 10 state Standby -> Active
DSW2(config)#do show spanning-tree vlan 10 VLAN0010 Spanning tree enabled protocol ieee Root ID Priority 24586 Address 000C.856A.50BD Cost 4 Port 3(GigabitEthernet1/0/3) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32778 (priority 32768 sys-id-ext 10) Address 0001.C912.B090 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
DSW2(config)#do sh spanning-tree vlan 20 VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 28692 Address 000C.856A.50BD Cost 4 Port 3(GigabitEthernet1/0/3) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32788 (priority 32768 sys-id-ext 20) Address 0001.C912.B090 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
DSW2(config)#spanning-tree vlan 20 root primary DSW2(config)#do sh spanning-tree vlan 20 VLAN0020 Spanning tree enabled protocol ieee Root ID Priority 24596 Address 0001.C912.B090 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 24596 (priority 24576 sys-id-ext 20) Address 0001.C912.B090 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 20
DSW1 should be active in VLAN 10, and standby in VLAN 20. DSW2 should be standby in VLAN 10, and active in VLAN 20.
Check configurations.
DSW1
1 2 3 4 5 6
DSW1#show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Vl10 10 105 P Active local 10.0.10.2 10.0.10.254 Vl20 20 95 P Active local unknown 10.0.20.254
DSW2
1 2 3 4 5 6
DSW2#show standby brief P indicates configured to preempt. | Interface Grp Pri P State Active Standby Virtual IP Vl10 10 95 P Standby 10.0.10.1 local 10.0.10.254 Vl20 20 105 Standby unknown local 10.0.20.254
Spanning-tree and HSRP synchronizations ensures host in VLAN 10 have a direct path to their gateway, and hosts in VLAN 20 have a direct path to their gateway.