WEBVTT
Kind: captions
Language: en

1
00:00:00.000 --> 00:00:07.018
Welcome to lesson thirteen, the second half of objective 1.7. This is the lesson where IPv4 turns

2
00:00:07.018 --> 00:00:13.819
into arithmetic, but only a little. We'll cover three ideas. Subnet masks and the CIDR prefix,

3
00:00:13.819 --> 00:00:20.693
like /24. Subnetting itself: block sizes, usable hosts, and finding which subnet a host belongs

4
00:00:20.693 --> 00:00:27.494
to. And VLSM, which lets one network hold subnets of different sizes, plus how CIDR summarizes

5
00:00:27.494 --> 00:00:28.294
routes.

6
00:00:28.400 --> 00:00:35.240
A subnet mask is another 32-bit number. Its ones mark the network part of an address and its zeros

7
00:00:35.240 --> 00:00:41.870
mark the host part, and the ones always come first. Our online store's office uses 192.168.10.0

8
00:00:41.870 --> 00:00:47.383
with the mask 255.255.255.0: twenty-four ones, then eight zeros. CIDR notation,

9
00:00:47.383 --> 00:00:54.083
short for Classless Inter-Domain Routing, simply counts the ones, so the same network is written

10
00:00:54.083 --> 00:00:55.200
192.168.10.0/24.

11
00:00:55.600 --> 00:01:03.724
Most exam questions live in the last octet, so learn this table. Every extra network bit halves

12
00:01:03.724 --> 00:01:11.420
the block: a /25 holds 128 addresses, a /26 holds 64, a /27 32, down to a /30 with just 4.

13
00:01:11.420 --> 00:01:19.543
The mask octets follow the same pattern: 128, 192, 224, 240, 248, 252. And here's the shortcut:

14
00:01:19.543 --> 00:01:25.700
the block size is 256 minus the last mask octet. 256 minus 192 gives 64.

15
00:01:26.100 --> 00:01:34.355
Not every address in a block goes to a device. The first address is the network ID and the last

16
00:01:34.355 --> 00:01:41.307
is the broadcast address, so usable hosts are two to the power of the host bits,

17
00:01:41.307 --> 00:01:47.824
minus two. A /26 has six host bits: 64 addresses, 62 hosts. Two exceptions:

18
00:01:47.824 --> 00:01:53.993
RFC 3021 lets a /31 use both of its addresses on a point-to-point link,

19
00:01:53.993 --> 00:01:56.600
and a /32 is exactly one host.

20
00:01:57.000 --> 00:02:02.664
Subnetting means borrowing host bits and giving them to the network part.

21
00:02:02.664 --> 00:02:09.958
Say the store wants four separate subnets out of 192.168.10.0/24. Borrowing two bits gives two

22
00:02:09.958 --> 00:02:15.545
squared, four subnets, each a /26. They start at .0, .64, .128 and .192,

23
00:02:15.545 --> 00:02:22.529
and each keeps six host bits, so 62 hosts. The rule: subnets are two to the borrowed bits,

24
00:02:22.529 --> 00:02:25.400
and every extra bit halves the hosts.

25
00:02:25.800 --> 00:02:31.774
Now the classic question: which subnet is 192.168.10.77/26 in? Step one,

26
00:02:31.774 --> 00:02:37.665
the block size: 256 minus 192 is 64. Step two, count in sixty-fours: 0,

27
00:02:37.665 --> 00:02:45.050
64, 128, 192. Step three, 77 falls in the block that starts at 64. So the network is .64,

28
00:02:45.050 --> 00:02:52.600
the broadcast is one less than the next block, .127, and usable hosts run from .65 to .126.

29
00:02:53.000 --> 00:02:59.878
Fixed-size subnets have a problem. The store's office has 100 devices, the warehouse 50,

30
00:02:59.878 --> 00:03:05.506
and the link to its internet router needs just 2. With a /26 everywhere,

31
00:03:05.506 --> 00:03:11.524
the office doesn't fit at all, and the router link wastes 60 of its 62 hosts.

32
00:03:11.524 --> 00:03:19.028
Real networks have subnets of very different sizes, so a single mask either runs short or throws

33
00:03:19.028 --> 00:03:20.200
addresses away.

34
00:03:20.600 --> 00:03:28.008
Variable Length Subnet Masking, or VLSM, fixes this by giving each subnet its own prefix.

35
00:03:28.008 --> 00:03:34.168
Start with the largest need. The office's 100 hosts get a /25, .0 to .127.

36
00:03:34.168 --> 00:03:41.909
The warehouse gets a /26 from .128, guest Wi-Fi a /27 from .192, the servers a /28 from .224,

37
00:03:41.909 --> 00:03:49.400
and the router link a /30 from .240. Everything fits in one /24, with room left for later.

38
00:03:49.800 --> 00:03:55.708
CIDR works in the other direction too. Classless means a prefix can be any length,

39
00:03:55.708 --> 00:04:02.480
not just /8, /16 or /24. So adjacent blocks can be combined. The store's four branch networks,

40
00:04:02.480 --> 00:04:08.315
10.1.0.0 through 10.1.3.0, all /24, share their first 22 bits. One summary route,

41
00:04:08.315 --> 00:04:14.151
10.1.0.0/22, covers all four. This is called supernetting or route summarization,

42
00:04:14.151 --> 00:04:16.600
and it keeps routing tables small.

43
00:04:17.000 --> 00:04:23.713
On the exam, convert quickly. 255.255.255.224 is a /27. A /28 has 14 usable hosts.

44
00:04:23.713 --> 00:04:31.409
For at least 50 hosts with the least waste, pick a /26. A point-to-point router link calls for

45
00:04:31.409 --> 00:04:39.187
a /30, or a /31. To find a network address, count in block sizes. Subnets of different sizes in

46
00:04:39.187 --> 00:04:45.000
one network mean VLSM, and combining routes into one is a CIDR summary.

47
00:04:45.400 --> 00:04:52.676
To recap: the mask's ones mark the network, and CIDR counts them. The block size is 256 minus

48
00:04:52.676 --> 00:04:58.466
the last mask octet, and usable hosts are two to the host bits, minus two.

49
00:04:58.466 --> 00:05:05.742
Borrowing bits makes more, smaller subnets. Count in block sizes to find a host's network and

50
00:05:05.742 --> 00:05:11.609
broadcast. VLSM sizes each subnet to its needs, and CIDR summarizes routes.

51
00:05:11.609 --> 00:05:13.800
Next: SDN, SD-WAN and VXLAN.
