1
00:00:01,010 --> 00:00:02,840
So let's look at that practically.

2
00:00:02,940 --> 00:00:08,510
Yeah I've got to switch one switch to and switch three switch to switch three or connected to a hub.

3
00:00:09,480 --> 00:00:14,610
So that's following the typologies shown in this Cisco guide.

4
00:00:14,990 --> 00:00:21,360
I've just booted up the switches so you can see that coming up at the moment.

5
00:00:21,400 --> 00:00:24,820
So these are brain switches with no configuration at all.

6
00:00:28,170 --> 00:00:37,410
OK so in switch one set to the host name to switch one switch to set the host name to switch to.

7
00:00:37,580 --> 00:00:46,130
You may be able to hear that by C.P. you is maxed out all the switches are booting up at the moment

8
00:00:46,160 --> 00:00:53,510
my genius 3 VM is at 87 percent the local CPQ 62 percent but that'll settle down in a moment which it

9
00:00:53,510 --> 00:01:07,080
now has so schola shows spanning tree shows spanning tree at the moment to the switches not to the route.

10
00:01:07,100 --> 00:01:10,910
You can see it's a path cost to get to the route on gigabit.

11
00:01:10,910 --> 00:01:16,040
0 1 so I'm assuming that switch 3 is the route.

12
00:01:17,660 --> 00:01:21,350
Show spending tree we can see in the output here.

13
00:01:21,640 --> 00:01:26,170
That to switch three is the route to switch of the topology.

14
00:01:26,180 --> 00:01:28,780
So I'll change that Nick.

15
00:01:29,000 --> 00:01:31,730
I'll just touch one and top spending tree.

16
00:01:32,190 --> 00:01:40,310
Vigeland One bricht And actually I'll just set it by priority so priority and let's set it to zero.

17
00:01:41,370 --> 00:01:51,670
So show spanning tree we can see that the switch is now the root of the spinning tree for villaine one.

18
00:01:51,800 --> 00:01:56,820
We are running Reppert Peavey's on the switch.

19
00:01:57,740 --> 00:02:00,480
Some ports are still in the learning state.

20
00:02:02,880 --> 00:02:04,510
But there they go to Fording.

21
00:02:04,560 --> 00:02:08,370
So we can see all ports in the switch all forwarding.

22
00:02:08,370 --> 00:02:10,560
Those are the two ports of interest and which one

23
00:02:14,120 --> 00:02:16,070
on switch to show spending tree

24
00:02:19,020 --> 00:02:26,030
so is the commission show spending tree we running Reppert spending tree Poth just to get to the root

25
00:02:26,030 --> 00:02:34,850
is 4 out of portal 1 which is kickabout 00 gigabit 00 is the root port.

26
00:02:35,030 --> 00:02:40,270
And notice how gigabit is 0 1 is the old turn of port on the switch.

27
00:02:40,460 --> 00:02:42,290
It's in the blocking state.

28
00:02:42,770 --> 00:02:45,480
That's what we learnt in the Cisco document.

29
00:02:45,650 --> 00:02:53,210
An alternate port on the switch means that there is a port on another switch that's the designated port.

30
00:02:53,210 --> 00:02:57,620
In other words it has a better path to get to the root bridge.

31
00:02:57,620 --> 00:03:03,300
So let's look at Switch three shows spending tree on switch three.

32
00:03:03,520 --> 00:03:08,340
It has a path to fall out of port 1 which is gigabit 0 0.

33
00:03:08,380 --> 00:03:11,620
So this is the route port of switch three.

34
00:03:11,860 --> 00:03:20,160
We can see that here once again gigabit 0 0 is the root port and the output to Gigabit is 0 1 is the

35
00:03:20,310 --> 00:03:22,680
designated port and gigabit.

36
00:03:22,680 --> 00:03:32,250
0 2 is the backup port backup port is in the blocking state alternate port on switch to is in the blocking

37
00:03:32,250 --> 00:03:33,420
state.

38
00:03:33,420 --> 00:03:36,940
So this port is blocking this port is blocking.

39
00:03:37,140 --> 00:03:42,890
This is the only port that is forwarding on this segment connected to the hub.

40
00:03:43,200 --> 00:03:49,550
So loops will be blocked in the apology even though we connected to a hub that demonstrates the port

41
00:03:49,550 --> 00:03:54,980
roles and status that you get interrupted spending tree on switch to once again just move this up a

42
00:03:54,980 --> 00:03:57,420
bit.

43
00:03:57,620 --> 00:04:09,840
So on switch to connect to the hub on gigabit 0 1 gigabit 0 1 is an old turn at port.

44
00:04:10,060 --> 00:04:20,260
That is the role the status of the port is blocking gigabit 0 00 on that switch is a recruit port.

45
00:04:20,290 --> 00:04:28,450
That is the role and the status is forwarding on switch 3 gigabit 00.

46
00:04:28,490 --> 00:04:31,130
This port is the root port.

47
00:04:31,160 --> 00:04:33,410
It has a status of forwarding.

48
00:04:33,410 --> 00:04:36,560
That's the best port to use to get to the root bridge.

49
00:04:36,710 --> 00:04:38,600
Gigabit is 0 1.

50
00:04:38,600 --> 00:04:42,760
In other words this connection is the designated port.

51
00:04:42,770 --> 00:04:50,650
The role is designated the status is forwarding this interface gigabit to 0 2 is a backup port.

52
00:04:50,750 --> 00:04:53,890
That is the role the status is blocking.

53
00:04:54,110 --> 00:05:03,530
So blocking or discarding to use the industry standard term is the state of alternative as well as backup

54
00:05:03,530 --> 00:05:12,890
ports router ports and designated ports have the forwarding status in a stable topology a state of learning

55
00:05:13,370 --> 00:05:16,480
means that traffic is still being discarded on the port.

56
00:05:16,850 --> 00:05:17,930
So as an example

57
00:05:20,630 --> 00:05:29,890
on gigabit 00 I'll shut the port down show spending tree notice gigabit to 0 or 1 is now forwarding

58
00:05:30,790 --> 00:05:34,070
gigabit to 0 2 is the alternate port.

59
00:05:34,240 --> 00:05:35,280
It's in a blocking state

60
00:05:39,120 --> 00:05:42,080
the port here is now the designated port.

61
00:05:42,080 --> 00:05:47,790
It's in the learning status which will hopefully move to forwarding in a moment.

62
00:05:47,910 --> 00:05:49,140
And there you go.

63
00:05:49,140 --> 00:05:56,190
The reason why it took time to transition to the forwarding state is that this is a shared port not

64
00:05:56,190 --> 00:06:02,230
a point to point Port point to point ports transition immediately to forwarding Schade ports.

65
00:06:02,250 --> 00:06:06,830
Don't they have to go through the timer's of learning and then forwarding.

66
00:06:06,990 --> 00:06:14,730
So scrolling up we saw a learning state and then it went to the forwarding state.

67
00:06:14,730 --> 00:06:21,110
That's because it's a shared port which means a half duplex interface which is connected to a hub.

68
00:06:21,450 --> 00:06:27,360
This port should be configured as a point to point link because it's a direct connection from one switch

69
00:06:27,360 --> 00:06:28,500
to another.

70
00:06:28,500 --> 00:06:37,350
So as an example what we should be doing is on gigabit 00 we should top spending tree linked type point

71
00:06:37,350 --> 00:06:42,190
to point and we want to do that on both sides.

72
00:06:42,720 --> 00:06:48,450
Typically in the real world your switches would negotiate a point to point link if the Duplaix was set

73
00:06:48,450 --> 00:06:57,570
to full we'll do something similar on switch three gigabit 00 should be point to point and gigabit 0

74
00:06:57,560 --> 00:06:58,750
1 should be point to point.

75
00:06:58,750 --> 00:07:02,860
In other words this link point to point the Slinky's point to point.

76
00:07:02,860 --> 00:07:09,880
So back on switch to shows spending tree noticed the port type point to point which allows for quicker

77
00:07:09,900 --> 00:07:19,260
convergence on which one show spending tree both gigabit 00 and gigabit zero one point to point links.
