1
00:00:06,600 --> 00:00:07,433
- All right,

2
00:00:07,433 --> 00:00:09,930
let's talk about the client IP settings.

3
00:00:09,930 --> 00:00:11,220
We've already showed some of these,

4
00:00:11,220 --> 00:00:12,053
but we'll talk about 'em

5
00:00:12,053 --> 00:00:13,680
in a little bit more depth here,

6
00:00:13,680 --> 00:00:15,600
and you can modify the IP settings

7
00:00:15,600 --> 00:00:18,060
for any of your network connections.

8
00:00:18,060 --> 00:00:19,170
And by the way, I got here

9
00:00:19,170 --> 00:00:22,470
from the network and sharing
portion of Windows 7,

10
00:00:22,470 --> 00:00:24,300
but you can get there
from the control panel.

11
00:00:24,300 --> 00:00:26,820
You can get here from a
lot of different locations,

12
00:00:26,820 --> 00:00:28,470
as long as you get there.

13
00:00:28,470 --> 00:00:31,650
But you can modify the IP
settings for any of these.

14
00:00:31,650 --> 00:00:34,080
And you can also modify
the names of these,

15
00:00:34,080 --> 00:00:34,950
if you wish.

16
00:00:34,950 --> 00:00:38,400
If you're on Windows 7 or
older versions of Windows,

17
00:00:38,400 --> 00:00:43,400
the name would be local
area connection with spaces.

18
00:00:43,440 --> 00:00:45,750
And it's never really good to have spaces

19
00:00:45,750 --> 00:00:47,760
in the name of your network connection,

20
00:00:47,760 --> 00:00:49,770
so I just changed mine to LAN.

21
00:00:49,770 --> 00:00:51,570
And you'll find on Windows 8 and higher,

22
00:00:51,570 --> 00:00:52,830
it's just called ethernet.

23
00:00:52,830 --> 00:00:55,200
So one word names are
gonna be much better,

24
00:00:55,200 --> 00:00:56,160
especially if you're gonna work

25
00:00:56,160 --> 00:00:58,200
with that network connection
in the command line,

26
00:00:58,200 --> 00:01:00,210
which we will later on.

27
00:01:00,210 --> 00:01:02,520
So let's go to that guy's properties,

28
00:01:02,520 --> 00:01:06,480
and then bring up the IPv4 properties,

29
00:01:06,480 --> 00:01:08,520
and zoom in on that.

30
00:01:08,520 --> 00:01:11,040
And you can see here, in
the previous sub lesson,

31
00:01:11,040 --> 00:01:13,380
we set up a static IP address.

32
00:01:13,380 --> 00:01:14,280
Remember the difference,

33
00:01:14,280 --> 00:01:17,520
between the dynamic and the static.

34
00:01:17,520 --> 00:01:20,430
Now these are the components
of our IP connection.

35
00:01:20,430 --> 00:01:22,830
The first is the IP address.

36
00:01:22,830 --> 00:01:25,500
This is the IPv4 address.

37
00:01:25,500 --> 00:01:28,593
It's a 32 bit number.

38
00:01:29,460 --> 00:01:31,590
Eight bits, eight bits,

39
00:01:31,590 --> 00:01:35,070
eight bits, and eight
bits, 32 bits in total.

40
00:01:35,070 --> 00:01:38,640
And this address is 192.168.0.220,

41
00:01:38,640 --> 00:01:40,770
but it could be any number really.

42
00:01:40,770 --> 00:01:42,630
Generally, if you're working on a computer

43
00:01:42,630 --> 00:01:46,230
on a LAN, it'll be on a
private network like this one.

44
00:01:46,230 --> 00:01:48,690
This is a Class-C private network.

45
00:01:48,690 --> 00:01:51,210
But you know you have lots
and lots of options here

46
00:01:51,210 --> 00:01:52,920
as far as the IP address goes.

47
00:01:52,920 --> 00:01:57,920
Now this IP address tells the
network who the computer is.

48
00:01:58,950 --> 00:02:00,630
It is 220.

49
00:02:00,630 --> 00:02:03,750
It's on the 192.168.0 network,

50
00:02:03,750 --> 00:02:06,723
and it's individual host IP is 220.

51
00:02:07,680 --> 00:02:08,760
So that's the IP address.

52
00:02:08,760 --> 00:02:10,800
It's the address of the computer.

53
00:02:10,800 --> 00:02:13,050
The next one here is the subnet mask.

54
00:02:13,050 --> 00:02:16,980
The subnet mask defines which
portion of the IP address

55
00:02:16,980 --> 00:02:19,140
is the network portion,

56
00:02:19,140 --> 00:02:22,080
and which portion is the host portion.

57
00:02:22,080 --> 00:02:26,520
So the 255s tell us the network portion.

58
00:02:26,520 --> 00:02:29,040
In binary, this is all ones.

59
00:02:29,040 --> 00:02:33,060
So the ones in binary tell
us the network portion,

60
00:02:33,060 --> 00:02:36,690
and the zero tells us the host portion.

61
00:02:36,690 --> 00:02:38,730
So we know from the 255s

62
00:02:38,730 --> 00:02:42,870
that the network number is 192.168.0.

63
00:02:42,870 --> 00:02:46,623
And we know from the 0 that
the host portion is 220.

64
00:02:47,520 --> 00:02:48,600
So that's our subnet mask.

65
00:02:48,600 --> 00:02:52,287
You know, might have a subnet
mask that says 255.0.0.0,

66
00:02:55,050 --> 00:02:59,580
and that would mean that
the network was 192.

67
00:02:59,580 --> 00:03:01,560
Generally, you wouldn't see that though.

68
00:03:01,560 --> 00:03:03,930
If you see 255.0.0.0,

69
00:03:03,930 --> 00:03:07,470
that is usually gonna
mean a Class-A address,

70
00:03:07,470 --> 00:03:10,743
and it might be something like 10.0.0.1.

71
00:03:12,390 --> 00:03:17,070
And so the network is 10 and
this is the host portion.

72
00:03:17,070 --> 00:03:19,893
The last three octets
are the host portion.

73
00:03:21,960 --> 00:03:24,120
The default gateway is
the device that you,

74
00:03:24,120 --> 00:03:26,703
and I'm gonna change this back real quick.

75
00:03:32,550 --> 00:03:34,680
So now we're back to our Class-C network

76
00:03:34,680 --> 00:03:38,280
with our 220 address and
our triple 255 subnet mask.

77
00:03:38,280 --> 00:03:40,350
The default gateway is the
device that you connect

78
00:03:40,350 --> 00:03:42,030
to to get past your network

79
00:03:42,030 --> 00:03:45,270
if you wanna go to another
network such as the internet.

80
00:03:45,270 --> 00:03:48,360
Most of the time, the
gateway IP address is

81
00:03:48,360 --> 00:03:52,950
on the same IP network
as your own computer.

82
00:03:52,950 --> 00:03:57,950
So if your computer's IP
address is 192.168.1.101,

83
00:03:58,530 --> 00:04:01,590
for example, then your
gateway address will be

84
00:04:01,590 --> 00:04:02,910
on that same network number,

85
00:04:02,910 --> 00:04:07,500
that same 192.168.1 network number.

86
00:04:07,500 --> 00:04:10,890
And for example, you might
have a Soho four port router

87
00:04:10,890 --> 00:04:15,660
that uses 192.168.1.1.

88
00:04:15,660 --> 00:04:17,670
It acts as the gateway for your computer

89
00:04:17,670 --> 00:04:20,310
and other computers out to the internet.

90
00:04:20,310 --> 00:04:24,660
Your local IP address,
192.168.0.220 in this case,

91
00:04:24,660 --> 00:04:28,050
it's gotta be on the same
network as the default gateway.

92
00:04:28,050 --> 00:04:31,290
That's that 192.168.0 network.

93
00:04:31,290 --> 00:04:33,240
Otherwise you won't be
able to communicate.

94
00:04:33,240 --> 00:04:34,560
And this is a common problem.

95
00:04:34,560 --> 00:04:37,710
If you see that the
addresses are different

96
00:04:37,710 --> 00:04:40,320
and the person at the computers
having trouble connecting

97
00:04:40,320 --> 00:04:42,840
to the internet or connecting
to other computers, you know,

98
00:04:42,840 --> 00:04:46,350
it could be that the incorrect
IP address was assigned.

99
00:04:46,350 --> 00:04:50,100
Maybe they put 192.168.2.220.

100
00:04:50,100 --> 00:04:51,690
Well, that's not gonna
work because it's not

101
00:04:51,690 --> 00:04:54,900
the same network number
as the default gateway.

102
00:04:54,900 --> 00:04:57,840
Okay. Moving on down to the DNS server,

103
00:04:57,840 --> 00:05:00,870
the preferred DNS server
is the first DNS server

104
00:05:00,870 --> 00:05:02,730
that your computer will look to

105
00:05:02,730 --> 00:05:06,750
to resolve domain names to IP address.

106
00:05:06,750 --> 00:05:09,360
You know, if you go to
a domain like google.com

107
00:05:09,360 --> 00:05:13,920
or davidlprowse.com or what
have you, the name is great.

108
00:05:13,920 --> 00:05:16,020
That's great for us to know as humans.

109
00:05:16,020 --> 00:05:17,760
We can remember that name,

110
00:05:17,760 --> 00:05:19,530
but computers don't communicate that way.

111
00:05:19,530 --> 00:05:21,330
They communicate by IP address,

112
00:05:21,330 --> 00:05:24,090
and ultimately by binary numbers.

113
00:05:24,090 --> 00:05:28,320
So the DNS server, the domain
name system server takes care

114
00:05:28,320 --> 00:05:32,640
of that translation, that
resolution from domain name

115
00:05:32,640 --> 00:05:35,910
or host name to IP address.

116
00:05:35,910 --> 00:05:38,430
And you need to have a DNS
server on your network.

117
00:05:38,430 --> 00:05:39,820
If you have a Soho router

118
00:05:40,694 --> 00:05:41,880
it's most likely gonna be the same address

119
00:05:41,880 --> 00:05:43,110
as the default gateway.

120
00:05:43,110 --> 00:05:44,250
It is the same device.

121
00:05:44,250 --> 00:05:45,630
It's doing both.

122
00:05:45,630 --> 00:05:48,060
If you don't have one and your
computer connects directly

123
00:05:48,060 --> 00:05:50,250
to the internet, the DNS server will be

124
00:05:50,250 --> 00:05:52,320
on a different network altogether,

125
00:05:52,320 --> 00:05:55,410
and it'll be your ISP's DNS server.

126
00:05:55,410 --> 00:05:59,430
So for example, you know, 65.14.82.1.

127
00:05:59,430 --> 00:06:00,450
Who knows?

128
00:06:00,450 --> 00:06:02,730
And then you might have
an alternate DNS server.

129
00:06:02,730 --> 00:06:07,730
You might have a secondary
DNS server, like 65.14.82.2

130
00:06:07,920 --> 00:06:10,230
That way, if the preferred fails,

131
00:06:10,230 --> 00:06:13,353
you can still do your name
resolutions and get to websites.

132
00:06:14,280 --> 00:06:16,470
But more commonly on the LAN side,

133
00:06:16,470 --> 00:06:19,020
you'll be obtaining the
IP address automatically

134
00:06:19,020 --> 00:06:22,980
and obtaining the DNS server
address automatically.

135
00:06:22,980 --> 00:06:25,530
And that's gonna be for
your standard clients.

136
00:06:25,530 --> 00:06:28,210
It's only when you're working with servers

137
00:06:29,070 --> 00:06:32,460
or power workstations or critical systems

138
00:06:32,460 --> 00:06:37,260
or routers or printers that
you'll use static addresses.

139
00:06:37,260 --> 00:06:39,600
Otherwise, the clients
are gonna obtain all this

140
00:06:39,600 --> 00:06:41,073
information automatically.

141
00:06:42,180 --> 00:06:43,950
But you wanna know the difference

142
00:06:43,950 --> 00:06:47,940
between the IP address, the
sub mask, the default gateway,

143
00:06:47,940 --> 00:06:50,100
and the preferred DNS server.

144
00:06:50,100 --> 00:06:52,980
Now, if we obtain an IP
address automatically

145
00:06:52,980 --> 00:06:54,700
and obtain DNS automatically

146
00:06:55,560 --> 00:06:57,870
and go to our command line

147
00:06:57,870 --> 00:07:01,350
and do an ipconfig/all, we
can view the information.

148
00:07:01,350 --> 00:07:04,170
We can't view it in that grayed out box.

149
00:07:04,170 --> 00:07:05,400
If it's obtaining automatically,

150
00:07:05,400 --> 00:07:06,780
we can't really see the info.

151
00:07:06,780 --> 00:07:08,580
But you can see it in the command line

152
00:07:08,580 --> 00:07:10,593
with the ipconfig/all command.

153
00:07:14,010 --> 00:07:19,010
And so we see here we're using
the IP address 192.168.0.100,

154
00:07:19,620 --> 00:07:23,460
subnet mask 255.255.255.0,

155
00:07:23,460 --> 00:07:27,090
the default gateway 192.168.0.1,

156
00:07:27,090 --> 00:07:30,690
and the DHCP server 192.168.0.1.

157
00:07:30,690 --> 00:07:33,570
So we have all that information there.

158
00:07:33,570 --> 00:07:37,170
And also the DNS server, same address.

159
00:07:37,170 --> 00:07:38,880
All that information that we would've seen

160
00:07:38,880 --> 00:07:40,840
in a statically configured IP

161
00:07:42,150 --> 00:07:44,730
on the property sheet in the gooey,

162
00:07:44,730 --> 00:07:46,680
we can see that when it's getting

163
00:07:46,680 --> 00:07:50,310
the information dynamically
within the ipconfig/all.

164
00:07:50,310 --> 00:07:52,890
You could also use the netsh
command if you wanted to,

165
00:07:52,890 --> 00:07:55,110
the network shell to
find this information.

166
00:07:55,110 --> 00:07:59,040
But the ipconfig/all command's
a very easy one to use.

167
00:07:59,040 --> 00:08:00,690
So that's a little bit
about the IP settings.

168
00:08:00,690 --> 00:08:03,030
Understand what the address is,

169
00:08:03,030 --> 00:08:05,310
what the subnet mask does,

170
00:08:05,310 --> 00:08:06,720
what the gateway is,

171
00:08:06,720 --> 00:08:10,140
and the DNS server as well.

172
00:08:10,140 --> 00:08:11,970
And that's it for this sub lesson.

173
00:08:11,970 --> 00:08:15,450
And that wraps up this lesson on TCP/IP.

174
00:08:15,450 --> 00:08:16,440
We did a lot here.

175
00:08:16,440 --> 00:08:18,690
We talked about IPv4.

176
00:08:18,690 --> 00:08:20,760
We also talked about IPv6.

177
00:08:20,760 --> 00:08:24,540
You wanna understand what the
link-local IPv6 addresses are.

178
00:08:24,540 --> 00:08:29,460
So you wanna know the IPv4,
the IPv6 configurations.

179
00:08:29,460 --> 00:08:30,360
You wanna know the difference

180
00:08:30,360 --> 00:08:33,600
between public and private IP addresses.

181
00:08:33,600 --> 00:08:34,530
You wanna know the difference

182
00:08:34,530 --> 00:08:37,500
between static and dynamic addresses.

183
00:08:37,500 --> 00:08:40,320
You wanna understand subnet masks.

184
00:08:40,320 --> 00:08:42,750
And you wanna understand
the client IP settings

185
00:08:42,750 --> 00:08:43,920
as shown here.

186
00:08:43,920 --> 00:08:46,830
Know the ipconfig command,
and know that for the exam

187
00:08:46,830 --> 00:08:47,663
and know it for the field.

188
00:08:47,663 --> 00:08:49,230
You're gonna use it all the time.

189
00:08:49,230 --> 00:08:50,880
And so that's it for this lesson.
