1 00:00:00,000 --> 00:00:00,500 2 00:00:00,500 --> 00:00:02,790 It's often fun to verify what we think 3 00:00:02,790 --> 00:00:03,874 is happening in a network. 4 00:00:03,874 --> 00:00:05,790 So what I'd love to do in this Nugget with you 5 00:00:05,790 --> 00:00:08,340 is take just a moment and take a look at A Spanning tree 6 00:00:08,340 --> 00:00:11,700 topology in our current network for VLAN 100, 7 00:00:11,700 --> 00:00:14,340 and then cause a network failure in one part of our network, 8 00:00:14,340 --> 00:00:17,070 and then see the results of Spanning Tree adapting 9 00:00:17,070 --> 00:00:20,280 to that failure and choosing an alternate path to go ahead 10 00:00:20,280 --> 00:00:21,940 and forward frames through. 11 00:00:21,940 --> 00:00:23,610 So here is our current technology. 12 00:00:23,610 --> 00:00:26,590 We're going to focus on VLAN 100 for this discussion. 13 00:00:26,590 --> 00:00:28,980 So the switches have all shared their BPDUs 14 00:00:28,980 --> 00:00:30,750 with each other, and as a result have 15 00:00:30,750 --> 00:00:33,890 chosen the lucky winner, which is Switch-1 to act as the root 16 00:00:33,890 --> 00:00:34,470 bridge. 17 00:00:34,470 --> 00:00:38,100 And the way the winner works with BPDUs is the bridge that 18 00:00:38,100 --> 00:00:40,050 has the lowest, like a golf score, 19 00:00:40,050 --> 00:00:42,764 the lowest bridge ID becomes the winner 20 00:00:42,764 --> 00:00:44,430 of the election for the root, and that's 21 00:00:44,430 --> 00:00:46,510 how that happened here on Switch-1 as well. 22 00:00:46,510 --> 00:00:48,450 And as a result, Switch-1 for VLAN 100 23 00:00:48,450 --> 00:00:51,750 is forwarding on all ports associated with VLAN 100, 24 00:00:51,750 --> 00:00:56,220 including gig 0/1, 0/2, 0/0 the trunk, and gig 1 25 00:00:56,220 --> 00:00:57,720 slash 3, the other trunk. 26 00:00:57,720 --> 00:01:01,780 Switch-2 and Switch-3 both have one root port respectively. 27 00:01:01,780 --> 00:01:04,260 That's this guy and this guy, which are both forwarding 28 00:01:04,260 --> 00:01:06,180 frames, but over here on this segment, 29 00:01:06,180 --> 00:01:08,960 Switch-2 is forwarding frames on it's gig 0 slash 3. 30 00:01:08,960 --> 00:01:11,880 In this topology, we only have a single block port, 31 00:01:11,880 --> 00:01:14,970 and that is Switch-3 on gig 0 slash 2. 32 00:01:14,970 --> 00:01:17,250 Everything else is in a forwarding state 33 00:01:17,250 --> 00:01:18,240 with Spanning Tree. 34 00:01:18,240 --> 00:01:19,823 So what we'll do is we'll go in, we'll 35 00:01:19,823 --> 00:01:22,080 verify that everything's forwarding for VLAN 100 36 00:01:22,080 --> 00:01:24,080 except for that one port, and then what we'll do 37 00:01:24,080 --> 00:01:26,760 is we'll go ahead and we'll simulate a failure by shutting 38 00:01:26,760 --> 00:01:30,480 down one of these interfaces between Switch-1 and Switch-2. 39 00:01:30,480 --> 00:01:32,800 Spanning Tree will recognize that change, 40 00:01:32,800 --> 00:01:34,620 and it will move this interface right here 41 00:01:34,620 --> 00:01:36,810 on Switch-3 out of the blocking state, 42 00:01:36,810 --> 00:01:38,620 and move it into the forwarding state, 43 00:01:38,620 --> 00:01:40,846 so we still have connectivity through the network. 44 00:01:40,846 --> 00:01:42,720 Before we make any changes, let's take a look 45 00:01:42,720 --> 00:01:43,530 at the current state. 46 00:01:43,530 --> 00:01:45,738 And to do that, we're going to issue the command show 47 00:01:45,738 --> 00:01:48,900 space spanning dash tree space and then add VLAN space 48 00:01:48,900 --> 00:01:50,710 100 on this Cisco switch. 49 00:01:50,710 --> 00:01:53,850 In fact, I'm going to send this command to all three switches 50 00:01:53,850 --> 00:01:56,800 simultaneously so we can focus on the results. 51 00:01:56,800 --> 00:01:59,519 So we'll send that command to each of our three switches, 52 00:01:59,519 --> 00:02:01,060 and let's take a look at the results. 53 00:02:01,060 --> 00:02:03,600 So here on Switch-1 regarding VLAN 100 54 00:02:03,600 --> 00:02:07,230 and its four interfaces that are involved with VLAN 100, 55 00:02:07,230 --> 00:02:09,030 notice here that the forwarding status 56 00:02:09,030 --> 00:02:12,450 on all of those ports from a Spanning Tree perspective 57 00:02:12,450 --> 00:02:14,550 is that it is willing to forward traffic, 58 00:02:14,550 --> 00:02:17,490 and that's partly because this switch, Switch-1, won 59 00:02:17,490 --> 00:02:21,450 the election, and this switch is the rot for the Spanning Tree. 60 00:02:21,450 --> 00:02:23,680 Let's take a look at Switch-2. 61 00:02:23,680 --> 00:02:26,620 Over here on Switch-2, using the same command. 62 00:02:26,620 --> 00:02:28,590 So here on Switch-2, we have gig 1/1, 63 00:02:28,590 --> 00:02:32,610 which is the port that's going up to PC-4 in VLAN 100, 64 00:02:32,610 --> 00:02:34,110 and we have two trunks. 65 00:02:34,110 --> 00:02:37,560 We have gig 1/0, which is the trunk over to Switch-1, 66 00:02:37,560 --> 00:02:40,890 and gig 0 slash 3, which is the trunk over to Switch-3. 67 00:02:40,890 --> 00:02:43,830 And all three of those ports are in the forwarding state, 68 00:02:43,830 --> 00:02:44,980 not being blocked. 69 00:02:44,980 --> 00:02:47,880 It's also indicating here that the root port on Switch-2, 70 00:02:47,880 --> 00:02:50,590 that's the port that's the fastest path to get to the root 71 00:02:50,590 --> 00:02:54,871 bridge, is gig 1 slash 0, which based on our typology, it is. 72 00:02:54,871 --> 00:02:56,370 But somebody has got to be blocking, 73 00:02:56,370 --> 00:02:58,170 so that's going to be Switch-3. 74 00:02:58,170 --> 00:03:00,060 Let's go take a look at Switch-3. 75 00:03:00,060 --> 00:03:02,380 So here in Switch-3 gig 0 slash 1, 76 00:03:02,380 --> 00:03:05,040 which is the port that connects over to Switch-1, 77 00:03:05,040 --> 00:03:06,640 it's in a forwarding state. 78 00:03:06,640 --> 00:03:08,850 It's also the root port, the fastest path 79 00:03:08,850 --> 00:03:12,300 from Switch-3's perspective to have access towards the root. 80 00:03:12,300 --> 00:03:14,490 We can also see that 0 slash 2 here 81 00:03:14,490 --> 00:03:16,780 is in a current blocking state, and it's 82 00:03:16,780 --> 00:03:18,780 because of that one port in this topology that's 83 00:03:18,780 --> 00:03:21,660 blocking due to Spanning Tree that's preventing a layer 2 84 00:03:21,660 --> 00:03:23,050 loop. 85 00:03:23,050 --> 00:03:26,110 So let's simulate a failure of a link between Switch-1 86 00:03:26,110 --> 00:03:28,580 and Switch-2, and what we'll do is we'll go to Switch-1, 87 00:03:28,580 --> 00:03:31,740 and we'll simply shut down the gig 0/0 interface, which 88 00:03:31,740 --> 00:03:35,250 will stop this root bridge from being able to send BPDUs over 89 00:03:35,250 --> 00:03:36,260 to Switch-2. 90 00:03:36,260 --> 00:03:39,090 It'll also remove the parallel path, and as a result, 91 00:03:39,090 --> 00:03:41,160 the Spanning Tree topology is going to change, 92 00:03:41,160 --> 00:03:42,930 and it's going to move gig 0 slash 2 93 00:03:42,930 --> 00:03:45,282 on Switch-3 into a forwarding state, 94 00:03:45,282 --> 00:03:46,740 and that's the real focus regarding 95 00:03:46,740 --> 00:03:50,200 the change that we want to verify in this demonstration. 96 00:03:50,200 --> 00:03:53,670 So back on the switches, let's go over to Switch-1. 97 00:03:53,670 --> 00:03:55,960 We'll go into Configuration mode on this Cisco switch. 98 00:03:55,960 --> 00:03:57,870 We'll go into Interface Configuration mode 99 00:03:57,870 --> 00:04:00,660 for gig 0 slash 0, and we'll use the command 100 00:04:00,660 --> 00:04:03,750 of shut down to go ahead and bring that interface 101 00:04:03,750 --> 00:04:05,430 down and out of commission. 102 00:04:05,430 --> 00:04:08,040 And then based on that version of Spanning Tree we're using 103 00:04:08,040 --> 00:04:11,220 and how it's tweaked, the actual change from a Spanning Tree 104 00:04:11,220 --> 00:04:14,610 topology could take anywhere from a few milliseconds 105 00:04:14,610 --> 00:04:16,827 up to many, many seconds. 106 00:04:16,827 --> 00:04:19,410 So we'll give that a moment to settle and while it's doing so, 107 00:04:19,410 --> 00:04:22,320 we'll go over to Switch-3, and here on Switch-3 108 00:04:22,320 --> 00:04:24,780 when we run this command again, show Spanning Tree for VLAN 109 00:04:24,780 --> 00:04:27,870 100, we expect to see gig 0 slash 2 110 00:04:27,870 --> 00:04:31,310 no longer to be blocking, but rather to be forwarding. 111 00:04:31,310 --> 00:04:35,700 And with traditional Spanning Tree, IEEE's 802.1D, 112 00:04:35,700 --> 00:04:38,970 as in David, that's the actual Spanning Tree Protocol, 113 00:04:38,970 --> 00:04:42,360 the original flavor, and it does take a few seconds to converge. 114 00:04:42,360 --> 00:04:44,250 And this port, gig 0 slash 2, is going 115 00:04:44,250 --> 00:04:45,960 to go out of blocking state, it's 116 00:04:45,960 --> 00:04:48,270 going to go into something called listening state. 117 00:04:48,270 --> 00:04:50,070 It's then going to go into learning state, 118 00:04:50,070 --> 00:04:52,410 and then eventually forwarding state once it knows 119 00:04:52,410 --> 00:04:55,250 the coast is clear, and there are no loops in the layer 2 120 00:04:55,250 --> 00:04:56,154 topology. 121 00:04:56,154 --> 00:04:58,320 So what we'll do here is we'll hit the Up arrow key, 122 00:04:58,320 --> 00:05:00,390 do a show Spanning Tree for VLAN 100 123 00:05:00,390 --> 00:05:02,490 again, and focus on the change. 124 00:05:02,490 --> 00:05:05,550 And that is that gig 0 slash 2 used to be in blocking state, 125 00:05:05,550 --> 00:05:08,660 but it's now in forwarding state because Spanning Tree realized 126 00:05:08,660 --> 00:05:11,220 there is no longer parallel paths, and as a result, 127 00:05:11,220 --> 00:05:13,980 it didn't have to put any of the ports in the topology 128 00:05:13,980 --> 00:05:15,780 into a blocking state. 129 00:05:15,780 --> 00:05:17,430 In this Nugget, we had a chance to see 130 00:05:17,430 --> 00:05:19,890 the results of Spanning Tree Protocol reacting 131 00:05:19,890 --> 00:05:21,690 to a topology change. 132 00:05:21,690 --> 00:05:24,000 I hope this has been informative for you, 133 00:05:24,000 --> 00:05:27,312 and I'd like to thank you for viewing. 134 00:05:27,312 --> 00:05:27,812