WEBVTT

1
00:00.000 --> 00:04.640
At this point, we have a couple different modes of operations for our switch

2
00:04.640 --> 00:05.000
ports.

3
00:05.000 --> 00:07.590
And we're talking about switch ports, we're talking about a layer two

4
00:07.590 --> 00:08.000
interfaces.

5
00:08.000 --> 00:13.000
So we have, for example, access mode, which is going to operate without tags.

6
00:13.000 --> 00:16.000
So this is an untagged mode of operation.

7
00:16.000 --> 00:19.840
And if I'm going to not tag something, then I have to tell the switch which V

8
00:19.840 --> 00:21.000
LAN that's running in.

9
00:21.000 --> 00:24.000
And so I'd say, hey, you're running in VLAN 10.

10
00:24.000 --> 00:27.980
And then all traffic into and out of that interface is considered to be part of

11
00:27.980 --> 00:29.000
that VLAN.

12
00:29.000 --> 00:33.000
And then, of course, I do have the trunk mode of operation.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

12
00:29.000 --> 00:33.000
And then, of course, I do have the trunk mode of operation.

13
00:33.000 --> 00:36.000
And this is going to use our VLAN tags.

14
00:36.000 --> 00:40.640
And ideally, in some way, we're either tagging the native VLAN, or we are not

15
00:40.640 --> 00:45.000
using a native VLAN or using a dummy VLAN as we talked about.

16
00:45.000 --> 00:47.000
So these are our primary two options.

17
00:47.000 --> 00:51.000
The access ports are intended to go to our end hosts.

18
00:51.000 --> 00:56.010
Because our end hosts, our PCs, our laptops and such, these are not usually

19
00:56.010 --> 00:57.000
tagging traffic.

20
00:57.000 --> 00:59.000
I just want to send my traffic.

21
00:59.000 --> 01:03.000
And I don't want to have to worry about what VLAN ID I'm on.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

21
00:59.000 --> 01:03.000
And I don't want to have to worry about what VLAN ID I'm on.

22
01:03.000 --> 01:05.590
And so our hosts just send untagged traffic to the network and allow the

23
01:05.590 --> 01:09.000
network to figure out what VLAN it's a part of.

24
01:09.000 --> 01:13.000
Meanwhile, trunks are going to be used between switches.

25
01:13.000 --> 01:17.450
And at that point, I want to make sure that I have configured my interfaces for

26
01:17.450 --> 01:21.000
trunks so I can carry multiple VLANs.

27
01:21.000 --> 01:23.000
But here's the question.

28
01:23.000 --> 01:29.000
Do we want this to be a manual or static configuration?

29
01:29.000 --> 01:33.690
Because if so, then we need to make sure that we're performing lots of
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

29
01:29.000 --> 01:33.690
Because if so, then we need to make sure that we're performing lots of

30
01:33.690 --> 01:35.000
configuration.

31
01:35.000 --> 01:41.050
I have to get onto every single interface and statically map it as trunk or

32
01:41.050 --> 01:42.000
access.

33
01:42.000 --> 01:47.870
And I can do that simply by using that switch port trunk command again, this

34
01:47.870 --> 01:50.000
time with switch port mode.

35
01:50.000 --> 01:55.210
I guess I said trunk, switch port mode, and then I either say access or I say

36
01:55.210 --> 01:56.000
trunk.

37
01:56.000 --> 02:02.780
And that is how I do it, but I have to get onto every single port and make sure
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

37
01:56.000 --> 02:02.780
And that is how I do it, but I have to get onto every single port and make sure

38
02:02.780 --> 02:05.000
that it's all properly configured.

39
02:05.000 --> 02:09.000
And I will say that in the real world for the most part, this is what I see.

40
02:09.000 --> 02:12.190
We typically are getting onto our ports and it's not that hard to figure out

41
02:12.190 --> 02:14.000
which ports connect to other switches

42
02:14.000 --> 02:17.990
and make sure they're configured for trunks and everything else is access ports

43
02:17.990 --> 02:18.000
.

44
02:18.000 --> 02:20.000
And that's all fine.

45
02:20.000 --> 02:23.000
But we should know that we do have another option.

46
02:23.000 --> 02:28.000
We do have this concept of dynamic trunking.

47
02:28.000 --> 02:33.280
Dynamic trunking is going to allow us to avoid this static world where I have
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

47
02:28.000 --> 02:33.280
Dynamic trunking is going to allow us to avoid this static world where I have

48
02:33.280 --> 02:37.000
to know which ports are access and which ports are trunk

49
02:37.000 --> 02:40.000
and just allow the switches to figure it out.

50
02:40.000 --> 02:41.000
It's kind of a cool idea.

51
02:41.000 --> 02:42.000
So here's the idea.

52
02:42.000 --> 02:47.000
If I have switches like this and let's say I've got a bunch of ports downstream

53
02:47.000 --> 02:51.000
and maybe a port over here to the other switch.

54
02:51.000 --> 02:54.540
With dynamic trunking enabled, the switch on the left here, we'll call this

55
02:54.540 --> 03:00.000
switch one, figures out that these ports need to run in access mode.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

55
02:54.540 --> 03:00.000
switch one, figures out that these ports need to run in access mode.

56
03:00.000 --> 03:03.000
And this port here in the middle needs to run as trunk.

57
03:03.000 --> 03:07.420
I'm using quotes mostly just to represent the fact that I didn't have to

58
03:07.420 --> 03:09.000
manually configure that.

59
03:09.000 --> 03:12.680
And switch 2 is going to figure out the same thing and say, hey, there's a

60
03:12.680 --> 03:14.000
switch on the other side here.

61
03:14.000 --> 03:18.150
We should run this as a trunk and these ports are going to have to run in

62
03:18.150 --> 03:23.000
access mode because I don't sense another switch out those interfaces.

63
03:23.000 --> 03:28.150
So it's a way for me to have to avoid getting on to every single switch and

64
03:28.150 --> 03:32.000
telling it exactly which ports are access and which ports are trunk,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

64
03:28.150 --> 03:32.000
telling it exactly which ports are access and which ports are trunk,

65
03:32.000 --> 03:35.520
even though it does get a little bit away from the concept of intentionality

66
03:35.520 --> 03:37.000
that I brought up earlier.

67
03:37.000 --> 03:39.000
But it is an option nonetheless.

68
03:39.000 --> 03:42.000
So how exactly does dynamic trunking work?

69
03:42.000 --> 03:47.490
Well, it's going to rely on a protocol known as the dynamic trunking protocol

70
03:47.490 --> 03:48.000
or DDB.

71
03:48.000 --> 03:53.470
And the idea here is that these two switches are going to be sending DTP

72
03:53.470 --> 03:59.590
messages out all over the place saying, hey, is there another switch out there

73
03:59.590 --> 04:01.000
on the other side?
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

73
03:59.590 --> 04:01.000
on the other side?

74
04:01.000 --> 04:06.460
Now notice that there is no switch down here on these sides. So if we're

75
04:06.460 --> 04:09.000
sending DTP messages out and not getting anything back,

76
04:09.000 --> 04:13.000
then at that point we know that these must be access ports.

77
04:13.000 --> 04:18.100
Meanwhile, this connection in the middle, we are getting a DTP message back and

78
04:18.100 --> 04:20.000
we recognize that there's a switch on the other side.

79
04:20.000 --> 04:25.000
And as long as both sides agree, we can form this into a trunk.

80
04:25.000 --> 04:29.060
And so it's as simple as sending some messaging back and forth and seeing if

81
04:29.060 --> 04:35.000
there's a device on the other side that mutually wants to form that trunk.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

81
04:29.060 --> 04:35.000
there's a device on the other side that mutually wants to form that trunk.

82
04:35.000 --> 04:39.240
So if I want to use DTP, I'm going to take a look at the switch port mode

83
04:39.240 --> 04:42.000
command, but I'm going to get another option.

84
04:42.000 --> 04:47.000
Instead of just access or trunk, I now get a dynamic option as well.

85
04:47.000 --> 04:50.000
And from here, I can specify two different options.

86
04:50.000 --> 04:57.020
I can specify desirable and I can specify auto, which honestly doesn't really

87
04:57.020 --> 05:00.000
tell me much about what's happening here.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

87
04:57.020 --> 05:00.000
tell me much about what's happening here.

88
05:00.000 --> 05:05.000
I mean, auto means automatic, desirable makes it sound like it wants something,

89
05:05.000 --> 05:08.000
maybe wants to form a trunk and that's exactly what it is saying.

90
05:08.000 --> 05:11.000
But let's explore this in a little more detail.

91
05:11.000 --> 05:15.310
When we're talking about desirable and auto, we're really saying, do I want to

92
05:15.310 --> 05:19.000
initiate creating a trunk?

93
05:19.000 --> 05:25.140
So desirable means that I will initiate a trunk and auto simply means that I

94
05:25.140 --> 05:27.000
will allow a trunk.

95
05:27.000 --> 05:32.170
Notice that in either case, we will form trunks if we have this dynamic enabled
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

95
05:27.000 --> 05:32.170
Notice that in either case, we will form trunks if we have this dynamic enabled

96
05:32.170 --> 05:35.000
and there's something on the other side that's initiating.

97
05:35.000 --> 05:38.000
But here's where it gets interesting.

98
05:38.000 --> 05:41.280
So if I have a desirable on one side and it matches up to desirable on the

99
05:41.280 --> 05:45.000
other side, well, we both want a trunk and so we're going to form one.

100
05:45.000 --> 05:50.070
Meanwhile, if I have desirable and auto on two different sides or vice versa,

101
05:50.070 --> 05:54.000
either way, well, I've got a side that says I want the trunk.

102
05:54.000 --> 06:00.000
I've got another side that says I'll allow it and therefore we form trunks.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

102
05:54.000 --> 06:00.000
I've got another side that says I'll allow it and therefore we form trunks.

103
06:00.000 --> 06:05.210
Lastly, if I have an auto and an auto, notice we'll both allow a trunk, but

104
06:05.210 --> 06:08.000
neither of us are going to initiate a trunk.

105
06:08.000 --> 06:13.000
This means that there will be no trunk formed.

106
06:13.000 --> 06:17.070
As a result, if I really just want to make sure I form trunks everywhere, I

107
06:17.070 --> 06:22.000
should probably just configure dynamic desirable on all of my interfaces.

108
06:22.000 --> 06:26.910
However, if there are interfaces where I don't want to be aggressive, I just

109
06:26.910 --> 06:31.000
kind of want to allow it, then that's where I would use auto.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

109
06:26.910 --> 06:31.000
kind of want to allow it, then that's where I would use auto.

110
06:31.000 --> 06:35.590
Now, when we configure port channels and specifically LACP later, we're going

111
06:35.590 --> 06:40.000
to find that there's a very similar methodology as far as one side initiating

112
06:40.000 --> 06:41.000
the other side,

113
06:41.000 --> 06:46.330
maybe just allowing but not initiating. This is the same kind of concept, but

114
06:46.330 --> 06:51.000
we'll again, we'll see that when we talk about LACP coming up.

115
06:51.000 --> 06:55.940
Now, one important note in all of this is that when we first turn on a new

116
06:55.940 --> 07:01.520
Cisco switch, we can look at the interfaces and the interfaces have a default
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

116
06:55.940 --> 07:01.520
Cisco switch, we can look at the interfaces and the interfaces have a default

117
07:01.520 --> 07:03.000
configuration.

118
07:03.000 --> 07:08.080
What is that default configuration, you might ask? Well, believe it or not, it

119
07:08.080 --> 07:10.000
is actually using DTP.

120
07:10.000 --> 07:15.280
Even today, where a lot of organizations don't rely on DTP, we don't always

121
07:15.280 --> 07:19.000
realize that it's actually still running in the background.

122
07:19.000 --> 07:23.550
So the default is to run in this switch port, well, we'll just cut it down to

123
07:23.550 --> 07:26.000
say, we're running in auto.

124
07:26.000 --> 07:32.000
Switch port mode dynamic auto is what our default configurations are.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

124
07:26.000 --> 07:32.000
Switch port mode dynamic auto is what our default configurations are.

125
07:32.000 --> 07:36.730
And so I can get on there and say, hey, I want to manually configure a trunk

126
07:36.730 --> 07:41.000
link, but believe it or not, it's still running DTP as overhead.

127
07:41.000 --> 07:49.710
And so if I want to disable DTP, I do have a command for that, and it is switch

128
07:49.710 --> 07:55.000
port no negotiate as all one word.

129
07:55.000 --> 07:59.460
And I know that when I've deployed network configurations, if we're not

130
07:59.460 --> 08:03.000
intentionally using DTP, which was pretty much never.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

130
07:59.460 --> 08:03.000
intentionally using DTP, which was pretty much never.

131
08:03.000 --> 08:07.910
In my, at least in my neck of the woods, I would always include this as part of

132
08:07.910 --> 08:12.650
my default configuration because, again, intentionality matters, and I don't

133
08:12.650 --> 08:16.000
want to protocol running if I'm not making use of it.

134
08:16.000 --> 08:27.010
So if we're not going to use DTP, we should probably consider disabling it. If

135
08:27.010 --> 08:27.420
we are going to use it, recognize that the default is in auto and we are still

136
08:27.420 --> 08:28.000
going to have to manually configure all those ports to be running in dynamic

137
08:28.000 --> 08:29.000
desirable.

138
08:29.000 --> 08:36.660
[BLANK_AUDIO]
