1
00:00:07,020 --> 00:00:08,460
- [Instructor] A router is used

2
00:00:08,460 --> 00:00:11,580
to connect computers to other networks.

3
00:00:11,580 --> 00:00:15,210
Routers come in several
forms, your SOHO router,

4
00:00:15,210 --> 00:00:18,120
those four-port or eight-port devices

5
00:00:18,120 --> 00:00:21,090
that are used in homes and small offices

6
00:00:21,090 --> 00:00:23,700
that are mainly used to
connect to the internet.

7
00:00:23,700 --> 00:00:26,040
Also, in bigger companies,

8
00:00:26,040 --> 00:00:29,970
those black box devices,
such as Cisco routers.

9
00:00:29,970 --> 00:00:34,800
And they allow for more ports, 24, 48, 96.

10
00:00:34,800 --> 00:00:35,850
And even servers.

11
00:00:35,850 --> 00:00:39,540
If a server is equipped with
multiple network adapters

12
00:00:39,540 --> 00:00:41,280
and the proper software,

13
00:00:41,280 --> 00:00:43,203
then that can act as a router as well.

14
00:00:44,910 --> 00:00:47,940
Now, the router can be used as
a connection to the internet,

15
00:00:47,940 --> 00:00:52,860
as we said with the SOHO
router, or on the LAN or WAN.

16
00:00:52,860 --> 00:00:55,170
It could connect to other routers

17
00:00:55,170 --> 00:00:56,820
and other portions of the network

18
00:00:56,820 --> 00:00:59,043
or other networks within your company.

19
00:01:00,690 --> 00:01:04,320
The device routes or sends packets

20
00:01:04,320 --> 00:01:06,960
from one location to another.

21
00:01:06,960 --> 00:01:08,580
So you have your packets of data

22
00:01:08,580 --> 00:01:11,358
that are sent from the computer
out through the network

23
00:01:11,358 --> 00:01:12,480
through the router.

24
00:01:12,480 --> 00:01:16,110
It routes the packets to
a particular destination

25
00:01:16,110 --> 00:01:17,733
anywhere in the world, really.

26
00:01:19,110 --> 00:01:23,520
And it does this based on the
IP addresses of other routers.

27
00:01:23,520 --> 00:01:25,500
And that's what's important here.

28
00:01:25,500 --> 00:01:26,430
You have to understand

29
00:01:26,430 --> 00:01:29,460
that the routers all get an IP address.

30
00:01:29,460 --> 00:01:32,970
And usually, this will
be a static IP address.

31
00:01:32,970 --> 00:01:34,383
Let's illustrate this.

32
00:01:35,610 --> 00:01:38,820
Here, we have an
illustration of a network.

33
00:01:38,820 --> 00:01:41,850
And here, we have a switch

34
00:01:41,850 --> 00:01:43,710
with three computers connected to it.

35
00:01:43,710 --> 00:01:46,530
We have a desktop computer,
a laptop and a server.

36
00:01:46,530 --> 00:01:47,363
Doesn't really matter.

37
00:01:47,363 --> 00:01:50,190
They're all part of the
LAN, the local area network,

38
00:01:50,190 --> 00:01:51,780
connected to the switch.

39
00:01:51,780 --> 00:01:55,890
And then the switch has a
connection to the router.

40
00:01:55,890 --> 00:01:58,170
The router then connects
out to the internet,

41
00:01:58,170 --> 00:02:01,143
which is often depicted as a cloud.

42
00:02:02,250 --> 00:02:04,650
And then, we have servers
out on the internet.

43
00:02:04,650 --> 00:02:06,150
And it doesn't really matter exactly

44
00:02:06,150 --> 00:02:08,220
what they are or where they are,

45
00:02:08,220 --> 00:02:11,400
except for we wanna know the IP address.

46
00:02:11,400 --> 00:02:12,633
That's what's important.

47
00:02:13,650 --> 00:02:15,330
So if you look here at our router,

48
00:02:15,330 --> 00:02:17,400
this is allowing all these computers

49
00:02:17,400 --> 00:02:21,300
access through the
internet to the servers.

50
00:02:21,300 --> 00:02:26,300
Here, we have a local area
network IP address, 10.0.0.1.

51
00:02:26,880 --> 00:02:31,260
That's the router's local
address or ethernet address.

52
00:02:31,260 --> 00:02:34,470
And that is also considered
the gateway address.

53
00:02:34,470 --> 00:02:37,923
If you configure TCP/IP
on these computers,

54
00:02:38,790 --> 00:02:42,630
you'll set up the gateway
address as 10.0.0.1.

55
00:02:42,630 --> 00:02:45,210
But the router has another IP address.

56
00:02:45,210 --> 00:02:47,760
This is a multi-homed device.

57
00:02:47,760 --> 00:02:49,680
It has two network adapters,

58
00:02:49,680 --> 00:02:51,570
one for the ethernet to the LAN,

59
00:02:51,570 --> 00:02:54,240
and one which is serial,
out to the internet.

60
00:02:54,240 --> 00:02:57,840
And that serial connection
is using a public IP address,

61
00:02:57,840 --> 00:03:01,230
207.172.15.50.

62
00:03:01,230 --> 00:03:04,053
That's a visible IP
address on the internet.

63
00:03:05,100 --> 00:03:08,100
People out on the internet
can see that IP address.

64
00:03:08,100 --> 00:03:10,830
And this router can see other computers

65
00:03:10,830 --> 00:03:12,240
on the internet as well.

66
00:03:12,240 --> 00:03:16,037
For example, these computers
here, 208.96.234.193 and .194.

67
00:03:18,720 --> 00:03:20,970
These are two servers at some company

68
00:03:20,970 --> 00:03:23,670
that this router can make a connection to.

69
00:03:23,670 --> 00:03:25,860
And it doesn't really matter
what they are exactly,

70
00:03:25,860 --> 00:03:27,720
but they need to be public IP addresses

71
00:03:27,720 --> 00:03:29,370
that the router can see.

72
00:03:29,370 --> 00:03:33,870
So this is an example of
the IP address structure.

73
00:03:33,870 --> 00:03:36,870
And what happens is the router
takes all the information,

74
00:03:36,870 --> 00:03:41,850
all the data, from these
computers and kind of re-wraps it.

75
00:03:41,850 --> 00:03:44,250
Instead of the information
being sent on the 10 network

76
00:03:44,250 --> 00:03:45,960
once it goes through the router,

77
00:03:45,960 --> 00:03:49,590
it gets changed to a public IP address.

78
00:03:49,590 --> 00:03:51,870
Let's take a look at
one of our SOHO routers

79
00:03:51,870 --> 00:03:53,700
that I have in the lab here.

80
00:03:53,700 --> 00:03:57,780
Here's an AC1750 SOHO four-port router.

81
00:03:57,780 --> 00:04:00,240
And it also acts as a
wireless access point.

82
00:04:00,240 --> 00:04:02,768
And it has the LAN and WAN connections

83
00:04:02,768 --> 00:04:04,770
that we just described.

84
00:04:04,770 --> 00:04:07,080
Here's the local area network connection.

85
00:04:07,080 --> 00:04:11,490
And its IP address is 192.168.0.1.

86
00:04:11,490 --> 00:04:15,237
And that's the default
for a TP-Link device.

87
00:04:15,237 --> 00:04:19,170
192.168.0.1, that's a private IP address.

88
00:04:19,170 --> 00:04:20,400
And then all the computers

89
00:04:20,400 --> 00:04:23,670
will be automatically given
IP addresses on this network.

90
00:04:23,670 --> 00:04:28,670
For example, 192.168.0.100
and .101, and so on.

91
00:04:29,010 --> 00:04:30,330
That's the local area connection

92
00:04:30,330 --> 00:04:33,930
that allows all the computers
on my little lab here

93
00:04:33,930 --> 00:04:35,970
to talk to each other.

94
00:04:35,970 --> 00:04:39,390
But it also enables a
connection out to the internet.

95
00:04:39,390 --> 00:04:43,020
And it does that through
the WAN connection,

96
00:04:43,020 --> 00:04:45,480
the wide area network connection.

97
00:04:45,480 --> 00:04:48,293
But the WAN address is 64.121.138.225.

98
00:04:51,000 --> 00:04:54,570
So that is the wide
area network connection

99
00:04:54,570 --> 00:04:56,850
that allows us access to any server

100
00:04:56,850 --> 00:05:00,000
or any other computer around the world.

101
00:05:00,000 --> 00:05:03,990
And you can see the device
has a different subnet mask

102
00:05:03,990 --> 00:05:05,910
and gateway and DNS servers

103
00:05:05,910 --> 00:05:08,760
that are out on the internet at my ISP,

104
00:05:08,760 --> 00:05:12,360
at the internet service
provider, 208.59.247.45 and .46.

105
00:05:14,790 --> 00:05:18,330
Also notice that the WAN
connection is a dynamic IP.

106
00:05:18,330 --> 00:05:21,000
I get that IP address from
the internet service provider.

107
00:05:21,000 --> 00:05:22,200
And again, I'll probably change that

108
00:05:22,200 --> 00:05:24,930
at the end of these videos.

109
00:05:24,930 --> 00:05:27,840
But the local area connection
is a static connection.

110
00:05:27,840 --> 00:05:29,310
That is the default address.

111
00:05:29,310 --> 00:05:30,840
You can change it if you want,

112
00:05:30,840 --> 00:05:34,050
but normally, you would
manually input that

113
00:05:34,050 --> 00:05:36,510
and leave it as that IP address

114
00:05:36,510 --> 00:05:39,063
and have it act as a static address.

115
00:05:40,080 --> 00:05:43,860
Keep in mind this address
acts as the gateway address

116
00:05:43,860 --> 00:05:46,050
for your client computers.

117
00:05:46,050 --> 00:05:51,050
So if you have a client
who is 192.168.0.100,

118
00:05:51,210 --> 00:05:55,140
it will use this IP address
as the gateway address.

119
00:05:55,140 --> 00:05:56,400
So that's just a quick example

120
00:05:56,400 --> 00:06:00,093
of the LAN and WAN connections
on a basic SOHO router.

121
00:06:01,230 --> 00:06:03,090
Okay, here's another diagram of a network.

122
00:06:03,090 --> 00:06:06,270
This time, we have two local area networks

123
00:06:06,270 --> 00:06:08,940
and they're in different
geographical areas.

124
00:06:08,940 --> 00:06:11,010
Let's say we have a
company with two offices

125
00:06:11,010 --> 00:06:14,880
in two different states or
two different countries.

126
00:06:14,880 --> 00:06:17,100
Well, here, we have LAN 29.

127
00:06:17,100 --> 00:06:19,470
And we could say this is in New York City.

128
00:06:19,470 --> 00:06:21,660
And over here, we have LAN 30.

129
00:06:21,660 --> 00:06:24,933
And we could say that's in Los
Angeles, just as an example.

130
00:06:25,950 --> 00:06:30,950
LAN 29 uses an internal
IP network of 172.29.0.0.

131
00:06:33,660 --> 00:06:38,660
The Los Angeles LAN, LAN 30,
uses an IP network 172.30.0.0.

132
00:06:39,360 --> 00:06:41,280
And you could use whatever
you want internally

133
00:06:41,280 --> 00:06:43,350
because they're private IPs.

134
00:06:43,350 --> 00:06:45,360
You just wanna make sure
that they're different.

135
00:06:45,360 --> 00:06:47,400
That this one is different from this one

136
00:06:47,400 --> 00:06:50,010
and any other networks
that you might have.

137
00:06:50,010 --> 00:06:51,510
But then, you wanna connect them.

138
00:06:51,510 --> 00:06:53,970
We have these computers
connected to a switch here.

139
00:06:53,970 --> 00:06:56,250
We have these computers
connected to a switch here.

140
00:06:56,250 --> 00:06:57,960
We wanna connect them
through the internet.

141
00:06:57,960 --> 00:07:02,250
So we install a router at each location.

142
00:07:02,250 --> 00:07:07,250
The router in the LAN 29
location has two addresses,

143
00:07:08,250 --> 00:07:10,050
the ethernet address,

144
00:07:10,050 --> 00:07:14,207
which is on the same IP network
as the LAN, 172.29.250.200,

145
00:07:15,600 --> 00:07:19,200
and a serial address,
which is a public address,

146
00:07:19,200 --> 00:07:21,570
which can be seen by the internet.

147
00:07:21,570 --> 00:07:25,473
And that's 65.43.18.1, just as an example.

148
00:07:26,340 --> 00:07:31,340
The other LAN, LAN 30, that has
a router with two addresses.

149
00:07:32,490 --> 00:07:37,200
Same type of thing, ethernet
address on the same IP network,

150
00:07:37,200 --> 00:07:40,980
172.30.250.200,

151
00:07:40,980 --> 00:07:43,701
and a serial address, which
is seen on the internet,

152
00:07:43,701 --> 00:07:48,701
it's public, 65.43.18.2.

153
00:07:49,050 --> 00:07:51,600
So these two addresses, very similar,

154
00:07:51,600 --> 00:07:53,970
just the last digit is one different.

155
00:07:53,970 --> 00:07:57,240
So they will be able to see
each other on the internet

156
00:07:57,240 --> 00:08:02,240
and forward packets from each
network through the internet.

157
00:08:03,180 --> 00:08:05,460
And we just see a T-1 connection here.

158
00:08:05,460 --> 00:08:08,283
That's just the type
of network connection,

159
00:08:09,660 --> 00:08:11,460
which we'll talk more about later.

160
00:08:11,460 --> 00:08:13,830
But that's basically how
the router's gonna work.

161
00:08:13,830 --> 00:08:16,440
The router's gonna take that
information from one LAN,

162
00:08:16,440 --> 00:08:20,580
send it across the
internet to another router.

163
00:08:20,580 --> 00:08:21,540
That's always what happens.

164
00:08:21,540 --> 00:08:22,950
To another router first,

165
00:08:22,950 --> 00:08:25,290
and then it gets to its final destination,

166
00:08:25,290 --> 00:08:27,840
whatever computer that is.

167
00:08:27,840 --> 00:08:32,670
So all this that's happening
here, this ethernet address

168
00:08:32,670 --> 00:08:36,210
to serial address
translation is just that.

169
00:08:36,210 --> 00:08:41,010
It's known as network
address translation or NAT.

170
00:08:41,010 --> 00:08:42,990
And so, you wanna know that for the exam.

171
00:08:42,990 --> 00:08:46,530
It's translating, it's taking
these packets of information,

172
00:08:46,530 --> 00:08:48,840
which are based on this IP network number,

173
00:08:48,840 --> 00:08:49,830
and converting them over,

174
00:08:49,830 --> 00:08:53,730
translating them to this
network number over here.

175
00:08:53,730 --> 00:08:55,560
Then, when they go to this router,

176
00:08:55,560 --> 00:08:58,020
it gets converted or translated again

177
00:08:58,020 --> 00:09:00,120
from this network number to this one.

178
00:09:00,120 --> 00:09:02,400
And then, finally, to
the final destination.

179
00:09:02,400 --> 00:09:06,450
Every router is known as a hop.

180
00:09:06,450 --> 00:09:07,620
So when you send information,

181
00:09:07,620 --> 00:09:10,140
if you send information
from this computer to here,

182
00:09:10,140 --> 00:09:12,990
it goes hop, hop, hop.

183
00:09:12,990 --> 00:09:15,120
That's a three-hop
transmission right there.

184
00:09:15,120 --> 00:09:18,360
And quite often, there's way more hops.

185
00:09:18,360 --> 00:09:20,010
If you wanna see how many hops it takes

186
00:09:20,010 --> 00:09:23,670
to get to a particular
server or domain name,

187
00:09:23,670 --> 00:09:26,370
use the tracert command.

188
00:09:26,370 --> 00:09:28,500
But anyways, there's a
little bit about routers,

189
00:09:28,500 --> 00:09:31,560
a little basic description
of how they work.

190
00:09:31,560 --> 00:09:34,530
Take a look at your
router, if you have one.

191
00:09:34,530 --> 00:09:37,200
If you have a basic SOHO router,

192
00:09:37,200 --> 00:09:39,360
log into it within your browser

193
00:09:39,360 --> 00:09:42,450
and take a look at the LAN
and the WAN connections.

194
00:09:42,450 --> 00:09:43,980
Make a comparison of those.

195
00:09:43,980 --> 00:09:45,270
Draw it out on paper.

196
00:09:45,270 --> 00:09:46,500
See how it all works.

197
00:09:46,500 --> 00:09:48,420
Check out your own network.

198
00:09:48,420 --> 00:09:50,120
And that's it for this sub-lesson.
