 Video Activity

Classful IP Addressing (part 1) In this lesson, we'll discuss what the subnet mask does. We correlate IP addressing to your home address and the postal system infrastructure to explain the concept of how a subnet mask works and what it does. We diagram and explain using binary code both subnet mask and IP address numbering convention and explains t...

Join over 3 million cybersecurity professionals advancing their career
or Time
30 hours 46 minutes
Difficulty
Intermediate
CEU/CPE
31
Video Description

Classful IP Addressing (part 1) In this lesson, we'll discuss what the subnet mask does. We correlate IP addressing to your home address and the postal system infrastructure to explain the concept of how a subnet mask works and what it does. We diagram and explain using binary code both subnet mask and IP address numbering convention and explains the class system infrastructure for determining for example a class A from a Class B address.

Video Transcription
00:04
next, we're going to discuss what the sub net Mass does
00:07
00:09
has two portions.
00:12
00:14
and then your house number. So let's go with 21 jump street.
00:20
The street address is Jump Street, and the house number is 21
00:25
just like that.
00:27
00:31
It has a network portion which corresponds to the street address,
00:36
and then it has a host portion
00:38
which corresponds to the house address.
00:43
What? The subnet mask Does it separate
00:46
the stream portion of the address from the house portion of the address?
00:52
So a sub net mass separates the network address
00:56
from the host address I have drown out in binary
01:00
four octet
01:03
for the I P.
01:06
And four AQ tats for the sub net mask.
01:07
And the I P we're gonna be converting to binary is 210 10 10
01:12
and the sub net mass being the Class C Summit mass. Since 200 falls in the Class C range, it is a number between 1 92 and 2 23 So the seven mass has to be 2552552550
01:27
If the Ark *** are not clearly visible on camera, I have drawn out
01:33
a bigger octet on top. Here. Each one of these fields between the dots looks like this,
01:38
with the name numbers going from one than Double 248 16 32 64 1 28
01:48
So let's convert the I pee into Binary
01:51
200. How do I get 200?
01:53
One? 28
01:55
plus 64
01:57
is 1 92
01:59
plus eight plus two
02:01
is 200
02:05
plus eight is 200. Sorry, 1 92 plus eight is 200
02:13
then The second octet is 10 which is simply eight and two.
02:19
So eight plus two is 10.
02:21
The third octet is also 10 which is eight plus two
02:30
and the fourth octet. I'm gonna be off camera here for a second. I didn't have enough space to draw this out larger than that. Eight and two
02:38
and the rest are zeros. Now let's look at the subject mask.
02:43
The first octet is 255 How do I get to 55? Once again, all the bits are turned on.
02:50
So 1 28 64 plus 32 plus 16 plus eight plus one plus two plus one
02:54
gives you 255
02:57
The second octet is also 255
03:01
So is the third octet on the fourth ock tent is zero, which means all zeros. This is our sub net masterworks
03:10
for any bit
03:13
03:15
So bit value 1 28 We're looking at
03:19
so for any bit in the i p address.
03:22
If the corresponding bit
03:24
in the sub net mask is on,
03:28
then that bit in the I P address belongs to the network portion of the address or the street portion of your address.
03:37
So 1 28 belongs to the network portion because the correspondent bit in the sub net mask is on.
03:44
03:46
the course the bit in the I. P address
03:49
is off. But that doesn't matter.
03:52
If the corresponding bet in the sub net mascots turned on then this dim, it belongs to the network. So it does not matter whether bit in the i P addresses on with the value one or off with the value zero as long as the corresponding bit in the sub net mask is on. That *** belongs to the network.
04:13
So this first hole are Tet has on bits in the sub net mask. The corresponding bits for the I P in the sub net mask are all on
04:21
this first octet. The whole thing belongs to the network.
04:25
So does the second octet
04:28
because the corresponding bit for the i p
04:30
the corresponding bits in the sub net mass. For this I p
04:33
address, the corresponding bits are on. So the second octet also belongs to the network.
04:40
And sure does the third doctor
04:43
the 4th 4th octet for the bits in the I p. The corresponding bits in the sub net mask are all off.
04:48
So that portion off the I P address belongs to the host portion.
04:54
So if you're seeing
04:56
the 1st 2nd and third octet have the bits in the sub net mask as on
05:01
so the 1st 2nd and third octave belong to the network.
05:05
Up until
05:09
this point,
05:11
the last octet all belongs to the host address or four host addresses.
05:16
So after this point, I want to ask you, give me just the street name.
05:23
Give me just the network address.
05:25
You would say, or I would expect you to say, I'm gonna erase this tough. The network address is 200 dot Tenn 200.0.10. In the computer world, we can't just leave a field empty,
05:39
so
05:40
we simply put a zero here.
05:43
So the street number
05:45
for this I p address just the street number or the network address is 210 10 0 And again, this is slash 24 or 25525525508 bits plus eight bits plus eight bits
06:02
is 24 bits, hence its last 24.
06:06
Now, the first valid address on this street or the first house on this street is simply
06:14
200
06:15
dot Tenn 0.0.10
06:19
that one.
06:20
If I were to ask you, how many total houses can you have on this street? Or, in other words, what is the last address on this street?
06:31
Well,
06:32
as you have seen, if an octet is full,
06:36
so you take any octet and turn all the bits on. That's the maximum number you can derive from it, which is 255 So the last address
06:46
on the street is going to be 200
06:50
10.
06:51
10
06:53
255
06:55
200 dot Tenn dot Tenn 200.0.0.255
06:59
Making sure these dots are visible for you guys. So
07:02
the rule in all networks being
07:06
is that you cannot use
07:10
the first address and the last address in any network for your PC, you cannot assign a PC or any machine the first address and the last address in a network.
07:21
Why? Well, because the first address, the 0.0 address is the network address itself. So if you ask for my home address and I told you I live on Jump Street, would you be able to get to my house? No. You would just be able to get to my street.
07:36
So assigning this address through machine is not allowed because it is just the street address
07:44
07:46
The last address in any network
07:49
07:51
Any message sent to this address will be received by all houses on that street, or any message sent through the dot to 55 address will be received by all hosts
08:07
in this network
08:09
that my valid range of addresses and I'm going to erase this 10 here. We don't really need it anymore.
08:16
The valid range of addresses that are assign a ble to PCs
08:20
is 0.12 dot 254 This is your valid range. The valid range of addresses could also be achieved using a formula you couldn't use the Formula Two to the power and minus two where n equals number
08:39
of
08:41
host bits. How many holes bits do I have
08:45
in this network? 210 10 0
08:48
Well, since the mask is 2552552550 the first octet belongs to the network.
08:56
The second octet belongs to the network. The third octet belongs to the network. The four talk Ted, The last act. It belongs to
09:03
hosts.
09:05
How many bits are
09:07
in this last are kept eight.
09:11
So two of the power and minus two. Where N is the number of host bits? You could say two to the power eight minus two, which is 2 56 minus two, which is 2 54 Which gives you the same number we got here. The valid ranges
09:30
0.1 through dot to 54
09:31
254 total valid addresses. Let's we'll get another example. What if we have a Class B address? So 1 50 is a number between
09:43
1 28 and 1 91 which makes it a Class B address.
09:48
So let's say we have one
09:50
50
09:50
dot
09:52
100 dot Tenn 100.0.10
09:56
10:01
0.0 dot zero.
10:05
If I were to ask you
10:07
what the street name is, or just the network address, this is an I. P address. This is a host address.
10:16
So if I were to ask you just for the network address, I would expect you to answer
10:22
1 50
10:24
100
10:26
0.0 slash 16.
10:31
Why? 1 51 100 0.0? Because the first octet belongs to the network and the second octave belongs to the network. The third and fourth thought that belonged to host addresses.
10:43
So we just set them to zero for the street name or the network name. Why this last 16 here? Because eight bits turned on in the subnet mask here, plus a bit turned on in the subnet mask in the second act.
10:54
So eight plus eight is 16. If I were to ask you for the first valid address here.
11:01
You would say 1 51 100 0.1 Why? 0.1? Well, the octet to the right. The right most active has to be full
11:15
11:18
to the architect to the left of it.
11:20
So this would go 0.10 dot 20.30 that for all the way through
11:28
0.255 Then you would have won
11:33
0.0
11:35
1.11 dot 21.3 all the way through 1.255 Then you would have 2.2 dot one and so on and so forth.
11:46
Well, I'll just erase this.
11:48
The last possible address would be 1 50.100 dot 255.255 Both the architects are full
12:01
12:07
data sent to this address will be received by all hosts on the network.
12:15
So my first valid address was 1 51 a 10 dot won. My last valid address would be 1 51 100.255 dot 254 This would be 0.1 through 255.254 would be my valid
12:35
range if I were to use that two to the power and minus two formula
12:39
12:46
and the first address being the network of the street address itself. If I were to come up with how many total addresses are between 0.1 and 255.254 I could use the Formula
12:58
Two to the power and minus two minus two because we take away the first and the last address.
13:05
So in this case, the value of N
13:07
well, how many host bits do we have?
13:11
The first octave belongs to the network because all the bits underneath in the sub net master turned on
13:16
the second octave belongs again to the network. That is all the bits in the summit mascot turned on
13:22
the third and fourth octet belonged to host addresses. So this is eight bits plus eight bits 16 bits. True to the power 16 minus two.
13:33
So two to the power 16 iss, I believe 65 5 36 minus two, which is 65 5 34 Now let's do a class example. I'm gonna pick a class A I p 10
13:52
then
13:52
10.
13:54
10. Keep it simple.
13:58
This the mask for Class A. Since the first octet, the value is between one and 1 26
14:05
14:07
0.0 dot 0.0. So if I were to ask you just for the street name just for the network address, you should say
14:18
it is 10
14:20
0.0 dot 0.0 slash
14:24
eight life slash eight. Because on Lee, eight bits total are turned on in the subnet mask,
14:31
meaning the first, the whole first doctor. Now, the first valid address in this case would be 10.0 dot 0.1.
14:43
Then it would go to \$10.0.23 dot for all the way to \$10 0 as you're about to 55
14:52
then it would go \$10.0 dot to 0.0.2 dot 12.2553 dot and so on and so forth. When this number gets to 255 Then you will add one over here.
15:03
15:05
for a Class A would be
15:09
or, for this
15:09
I p Class A would be 10.255 dot 255 dot
15:18
15:26
15:41
devices on the network.
15:43
The last valid address would be 10.255 dot 255.254
15:52
So is this
15:54
\$10? \$0? You're not 1 to 10 to 55255.254 would be my valid
16:02
range.
16:03
These are assigned herbal addresses that I can provide true machines to computers. Two PCs
16:11
if you
16:12
printers.
16:14
Now. If you were to ask me what what is the total range of addresses between that one and dot to 54?
16:21
Let's see if I remember so this would be again to the parlor and minus two
16:26
minus two. Once again, we take away the first and the last address and we say minus two.
16:33
So this is going to be true to the power. The first
16:37
our 10 belongs to the network, so Well, that's gone. The 2nd 3rd and fourth octet belongs to host addresses. So this is to the power 24
16:48
minus two. And I believe to the power 24 is 16777216 minus two, which yields 16777214 addresses.
17:06
And that concludes the class full I p address ing portion off this class
17:14
next up, we're going to get into class less. I p Addressing
Up Next