WEBVTT

1
00:00.000 --> 00:04.960
Well, switches are well known for running VLANs and trunks and everything like

2
00:04.960 --> 00:05.240
that,

3
00:05.240 --> 00:07.460
but what about routers?

4
00:07.460 --> 00:10.640
ROUDERS are typically known for running Layer 3 interfaces.

5
00:10.640 --> 00:16.280
However, they are also able to run Layer 2 trunks.

6
00:16.280 --> 00:19.800
Kind of an interesting concept, so what are we talking about here?

7
00:19.800 --> 00:25.140
Well, the idea is that I might have a scenario where I have a Layer 2 switch

8
00:25.140 --> 00:26.360
and I'm running

9
00:26.360 --> 00:32.670
a bunch of VLANs and I can now trunk this up to a router and allow this router
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

9
00:26.360 --> 00:32.670
a bunch of VLANs and I can now trunk this up to a router and allow this router

10
00:32.670 --> 00:33.720
to participate

11
00:33.720 --> 00:36.620
in all of those VLANs.

12
00:36.620 --> 00:40.660
This allows me to configure this truly as a trunk between the two and I'm going

13
00:40.660 --> 00:41.360
to carry,

14
00:41.360 --> 00:47.100
let's say VLANs 1 through 10 on this trunk link and extend those VLANs up to

15
00:47.100 --> 00:48.240
the router.

16
00:48.240 --> 00:52.200
Why would I go about doing this and how does the router support this?

17
00:52.200 --> 00:56.400
Well, this is actually a very famous and what we might consider to be a legacy

18
00:56.400 --> 00:57.020
topology

19
00:57.020 --> 00:58.160
at this point.

20
00:58.160 --> 01:01.720
This is known as a router on a stick.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

20
00:58.160 --> 01:01.720
This is known as a router on a stick.

21
01:01.720 --> 01:05.620
And yes, I laughed the first time I heard that and I still got to laugh when I

22
01:05.620 --> 01:05.960
hear

23
01:05.960 --> 01:06.960
it today.

24
01:06.960 --> 01:11.760
It's meant to be a little bit of a tongue-in-cheek type of description of what

25
01:11.760 --> 01:12.680
's happening here

26
01:12.680 --> 01:14.640
and we see why it's called a router on a stick.

27
01:14.640 --> 01:18.680
It looks like the switch is holding a router up on a stick.

28
01:18.680 --> 01:22.640
But the big part of this is understanding what we're trying to accomplish.

29
01:22.640 --> 01:27.540
See, back when networks were new and fresh, we would have these large layer two

30
01:27.540 --> 01:28.240
networks

31
01:28.240 --> 01:33.280
and they'd all consist of layer two switches.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

31
01:28.240 --> 01:33.280
and they'd all consist of layer two switches.

32
01:33.280 --> 01:36.520
So the question is, where do the gateways live?

33
01:36.520 --> 01:41.560
Where's the default gateways for VLANs 1 and 5 and 6 and 10?

34
01:41.560 --> 01:44.600
Well, they can't live on these layer two switches.

35
01:44.600 --> 01:49.090
They're not capable of running multiple SVIs and running routing protocols

36
01:49.090 --> 01:49.520
because they're

37
01:49.520 --> 01:51.600
true layer two switches.

38
01:51.600 --> 01:56.240
So what we do is we deploy a layer three device up here and the layer three

39
01:56.240 --> 01:57.080
device, in our

40
01:57.080 --> 02:03.660
case a router, is going to serve as the default gateway on a per VLAN basis and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

40
01:57.080 --> 02:03.660
case a router, is going to serve as the default gateway on a per VLAN basis and

41
02:03.660 --> 02:04.400
it's going

42
02:04.400 --> 02:09.240
to form the routing via upstream connections.

43
02:09.240 --> 02:13.170
So whatever layer three world lives upstream, whether that's connecting to the

44
02:13.170 --> 02:13.720
internet

45
02:13.720 --> 02:18.910
or going off into a wide area network space, either way, we are forming routing

46
02:18.910 --> 02:19.880
adjacencies

47
02:19.880 --> 02:24.950
into this router and allowing it to serve as the default gateway on a per VLAN

48
02:24.950 --> 02:25.680
basis.

49
02:25.680 --> 02:30.200
This is why we have to trunk all of these VLANs up to the router.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

49
02:25.680 --> 02:30.200
This is why we have to trunk all of these VLANs up to the router.

50
02:30.200 --> 02:34.630
But in order to really understand what's happening here, let's go ahead and use

51
02:34.630 --> 02:34.920
our

52
02:34.920 --> 02:39.640
dot notation to take a more detailed look.

53
02:39.640 --> 02:44.410
Because what we're really doing here is we're extending many different VLANs up

54
02:44.410 --> 02:45.920
to this router,

55
02:45.920 --> 02:51.640
but inside of the router, we're going to take those VLANs and split them off.

56
02:51.640 --> 02:55.490
And we're going to have an interface, a layer three interface, which of course

57
02:55.490 --> 02:56.040
we're going

58
02:56.040 --> 02:57.960
to represent as a dot.

59
02:57.960 --> 02:59.200
And I'll draw a few of these here.

60
02:59.200 --> 03:00.760
I won't draw 10 of them.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

60
02:59.200 --> 03:00.760
I won't draw 10 of them.

61
03:00.760 --> 03:02.360
Let's just draw five.

62
03:02.360 --> 03:04.920
So one more.

63
03:04.920 --> 03:08.280
So now we've got five of these interfaces.

64
03:08.280 --> 03:11.360
There are three interfaces, so these are layer three.

65
03:11.360 --> 03:13.040
But they're no longer an interface.

66
03:13.040 --> 03:17.260
This physical interface is an interface, but they're also not VLAN interfaces

67
03:17.260 --> 03:17.800
because

68
03:17.800 --> 03:19.800
those exist on switches.

69
03:19.800 --> 03:25.760
So instead, we're going to call these sub interfaces.

70
03:25.760 --> 03:32.940
And these sub interfaces are going to get mapped each one to a VLAN ID, meaning
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

70
03:25.760 --> 03:32.940
And these sub interfaces are going to get mapped each one to a VLAN ID, meaning

71
03:32.940 --> 03:33.480
that

72
03:33.480 --> 03:39.480
this sub interface over here might get mapped to, let's say, VLAN 5.

73
03:39.480 --> 03:44.840
And then because it's a layer three interface, I can apply an IP address to it.

74
03:44.840 --> 03:49.170
And whatever the gateway address is for VLAN 5, and then this one here, I can

75
03:49.170 --> 03:49.760
do the same

76
03:49.760 --> 03:54.400
thing but for VLAN 4 with an IP address.

77
03:54.400 --> 04:00.200
So the sub interface concept being used on a router and a stick topology is
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

77
03:54.400 --> 04:00.200
So the sub interface concept being used on a router and a stick topology is

78
04:00.200 --> 04:00.680
what a lot

79
04:00.680 --> 04:05.490
of networks thrived on for a long time when they had a pure layer two switching

80
04:05.490 --> 04:06.120
network

81
04:06.120 --> 04:12.440
that couldn't handle the ability to deploy multiple SVIs.

82
04:12.440 --> 04:15.800
And at that point, we required a layer three device.

83
04:15.800 --> 04:22.420
Now eventually, the solution led us to multi-layer switches or layer three

84
04:22.420 --> 04:23.880
switches depending

85
04:23.880 --> 04:24.880
on how we want to call them.

86
04:24.880 --> 04:28.480
But with multi-layer switches, we were able to say, you know what?

87
04:28.480 --> 04:33.240
You don't need a router on a stick anymore because now I can do what we've been
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

87
04:28.480 --> 04:33.240
You don't need a router on a stick anymore because now I can do what we've been

88
04:33.240 --> 04:34.000
drawing,

89
04:34.000 --> 04:41.070
which is to have sub, not sub interfaces, but SVIs for VLANs 4 and 5 and allow

90
04:41.070 --> 04:41.640
those

91
04:41.640 --> 04:47.880
to connect in to our different layer two VLANs as we've sketched out a few

92
04:47.880 --> 04:48.800
times.

93
04:48.800 --> 04:52.980
This drastically improved the traffic flow in a network because if we think

94
04:52.980 --> 04:53.600
about it,

95
04:53.600 --> 04:58.320
if I have a host hanging off of this layer two switch that's in VLAN 4 and a

96
04:58.320 --> 04:58.880
host over

97
04:58.880 --> 05:04.400
here that's in VLAN 5, how do these devices communicate with one another?
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

97
04:58.880 --> 05:04.400
here that's in VLAN 5, how do these devices communicate with one another?

98
05:04.400 --> 05:08.390
Well, as we think about the topology here, this host is connected to VLAN 4

99
05:08.390 --> 05:08.920
which is

100
05:08.920 --> 05:12.760
carried up on this trunk over here on this side.

101
05:12.760 --> 05:16.040
And then we'll just make VLAN 5 here green.

102
05:16.040 --> 05:21.170
And so same thing here except it's in a different connection, a different layer

103
05:21.170 --> 05:22.640
two domain that

104
05:22.640 --> 05:26.200
goes off to the right.

105
05:26.200 --> 05:27.960
And then this one comes up here.

106
05:27.960 --> 05:32.440
So as we color these in a little bit, we start to see how exactly this traffic
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

106
05:27.960 --> 05:32.440
So as we color these in a little bit, we start to see how exactly this traffic

107
05:32.440 --> 05:33.720
has to flow.

108
05:33.720 --> 05:39.490
It has to flow up the trunk to the sub interface, get routed over to the other

109
05:39.490 --> 05:40.520
sub interface

110
05:40.520 --> 05:45.720
and then get sent back down the trunk out to the other device.

111
05:45.720 --> 05:50.780
So this is known as tromboning of traffic, named after the instrument that sort

112
05:50.780 --> 05:51.280
of has

113
05:51.280 --> 05:53.920
the big long loop like that at the end.

114
05:53.920 --> 05:55.160
Well, that's exactly where we're doing.

115
05:55.160 --> 06:00.770
We have a big long loop where I go up to a device and then right back down as
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

115
05:55.160 --> 06:00.770
We have a big long loop where I go up to a device and then right back down as

116
06:00.770 --> 06:01.520
we clear

117
06:01.520 --> 06:03.000
up this drawing a little bit more.

118
06:03.000 --> 06:04.400
And we see that's very inefficient.

119
06:04.400 --> 06:09.850
I'd really rather just send that traffic right from one host to the other even

120
06:09.850 --> 06:10.240
if it

121
06:10.240 --> 06:14.080
involves routing and that's exactly what multi-layer switches do.

122
06:14.080 --> 06:20.640
Now I can get from this host on the left in VLAN 4 to the host in VLAN 5.

123
06:20.640 --> 06:25.200
Yes, I do have to go up and get routed over, but it stays on the same device.

124
06:25.200 --> 06:29.670
I don't have to worry about sending it off to some externally connected layer

125
06:29.670 --> 06:30.560
three router
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

125
06:29.670 --> 06:30.560
three router

126
06:30.560 --> 06:31.960
on a stick.

127
06:31.960 --> 06:36.460
So this is how router on a stick architectures worked, how sub interfaces

128
06:36.460 --> 06:37.200
worked.

129
06:37.200 --> 06:41.660
And we still see sub interfaces in use today every now and again, but generally

130
06:41.660 --> 06:42.360
speaking

131
06:42.360 --> 06:46.950
in real world networks, we don't have to worry about sub interfaces and trunks

132
06:46.950 --> 06:48.240
out to routers

133
06:48.240 --> 06:51.660
because we don't have to worry about router in a stick anymore thanks to our

134
06:51.660 --> 06:52.360
multi-layer

135
06:52.360 --> 06:53.000
switches.
