WEBVTT
Kind: captions
Language: en

1
00:00:00.000 --> 00:00:06.582
Welcome to lesson twelve. Objective 1.7 asks you to use appropriate IPv4 addressing in a given

2
00:00:06.582 --> 00:00:13.094
scenario. We'll cover three ideas. Public and private addresses, including the private ranges

3
00:00:13.094 --> 00:00:18.416
defined in RFC 1918. Two special addresses you'll meet when troubleshooting:

4
00:00:18.416 --> 00:00:24.929
APIPA and loopback. And the address classes, A through E, which the exam still expects you to

5
00:00:24.929 --> 00:00:29.200
know. Subnetting with CIDR and VLSM comes in the next lesson.

6
00:00:29.600 --> 00:00:37.173
First, what an IPv4 address is. It's a 32-bit number, written as four octets of eight bits each,

7
00:00:37.173 --> 00:00:43.483
in dotted decimal. So each octet holds a value from 0 to 255. Take 192.168.1.20,

8
00:00:43.483 --> 00:00:50.346
one of our online store's office computers. Part of the address identifies the network,

9
00:00:50.346 --> 00:00:56.578
and the rest identifies the host on that network. With the /24 mask shown here,

10
00:00:56.578 --> 00:01:02.100
the first three octets are the network and the last octet is the host.

11
00:01:02.500 --> 00:01:08.915
The store's website must be reachable by customers anywhere, so its web server needs a public

12
00:01:08.915 --> 00:01:14.363
address. Public addresses are globally unique and routable across the internet.

13
00:01:14.363 --> 00:01:21.261
They're handed out in a chain. IANA allocates large blocks to the five regional internet registries,

14
00:01:21.261 --> 00:01:27.744
such as ARIN in North America and RIPE NCC in Europe. The registries assign blocks to internet

15
00:01:27.744 --> 00:01:33.400
providers and large organizations, and the provider gives the store its addresses.

16
00:01:33.800 --> 00:01:40.470
The office computers don't need to be reachable from the internet, so they use private addresses.

17
00:01:40.470 --> 00:01:46.934
RFC 1918 sets aside three blocks: 10.0.0.0/8, 172.16.0.0/12, which runs from 172.16 to 172.31,

18
00:01:46.934 --> 00:01:53.261
and 192.168.0.0/16. Any organization can reuse them, but they're not routed on the internet.

19
00:01:53.261 --> 00:01:59.724
To get online, the router uses network address translation, or NAT, to share a public address.

20
00:01:59.724 --> 00:02:02.200
You'll study NAT in lesson eighteen.

21
00:02:02.600 --> 00:02:09.087
Normally a laptop gets its address from a DHCP server. But what if the server doesn't answer?

22
00:02:09.087 --> 00:02:14.946
Most client operating systems then assign themselves an address from 169.254.0.0/16.

23
00:02:14.946 --> 00:02:20.805
That's Automatic Private IP Addressing, or APIPA, also called link-local addressing.

24
00:02:20.805 --> 00:02:27.362
The laptop can talk to neighbors on the same link that did the same, but routers never forward

25
00:02:27.362 --> 00:02:32.733
these addresses, so there's no internet. A 169.254 address is a classic clue:

26
00:02:32.733 --> 00:02:33.533
check DHCP.

27
00:02:33.900 --> 00:02:40.051
The entire 127 block is reserved for loopback. The best-known address is 127.0.0.1,

28
00:02:40.051 --> 00:02:45.610
which has the name localhost. Traffic sent to it never leaves the computer:

29
00:02:45.610 --> 00:02:51.984
the operating system loops it straight back. So if you ping 127.0.0.1 and get a reply,

30
00:02:51.984 --> 00:02:57.468
the computer's own TCP/IP stack is working, even with the cable unplugged.

31
00:02:57.468 --> 00:03:01.100
In IPv6, the loopback address is colon colon one.

32
00:03:01.500 --> 00:03:09.851
Before 1993, addresses were split into classes, and you can tell the class from the first octet.

33
00:03:09.851 --> 00:03:17.246
Class A runs from 1 to 126 and uses a default mask of /8, giving a few huge networks.

34
00:03:17.246 --> 00:03:23.857
Class B runs from 128 to 191, with a /16 mask. Class C runs from 192 to 223,

35
00:03:23.857 --> 00:03:32.469
with a /24 mask and 254 usable hosts per network. 127 is missing from class A because it's reserved

36
00:03:32.469 --> 00:03:33.600
for loopback.

37
00:03:34.000 --> 00:03:39.424
The last two classes aren't for ordinary hosts. Class D, from 224 to 239,

38
00:03:39.424 --> 00:03:46.780
is multicast: one sender reaches a whole group of receivers, as routing protocols and video streams

39
00:03:46.780 --> 00:03:53.615
do. Class E, from 240 to 255, is reserved as experimental. Neither class has a default mask.

40
00:03:53.615 --> 00:03:59.782
One special address sits at the very top: 255.255.255.255 is the limited broadcast,

41
00:03:59.782 --> 00:04:03.200
which reaches every host on the local network.

42
00:04:03.600 --> 00:04:09.096
Let's practice. Check the special blocks first, then read the first octet.

43
00:04:09.096 --> 00:04:14.963
10.4.0.7 is private, in class A. 172.32.1.1 is a trap: private stops at 172.31,

44
00:04:14.963 --> 00:04:20.534
so this one is public, class B. 169.254.10.3 is APIPA, meaning DHCP failed.

45
00:04:20.534 --> 00:04:27.292
192.168.50.5 is private, class C. And 224.0.0.5 starts with 224, so it's class D multicast.

46
00:04:27.292 --> 00:04:31.600
With a little practice, each one takes just a few seconds.

47
00:04:32.000 --> 00:04:39.666
On the exam, match the clue to the answer. A host with a 169.254 address and no internet means

48
00:04:39.666 --> 00:04:45.782
APIPA: DHCP failed. Testing the local TCP/IP stack means pinging 127.0.0.1.

49
00:04:45.782 --> 00:04:53.529
Addresses in 10, 172.16 to 31, or 192.168 are private. A server that must be reachable from the

50
00:04:53.529 --> 00:05:00.380
internet needs a public address. A first octet from 224 to 239 is class D multicast,

51
00:05:00.380 --> 00:05:02.500
and 128 to 191 is class B.

52
00:05:02.900 --> 00:05:09.632
To recap: an IPv4 address is 32 bits in four octets. Public addresses are globally unique;

53
00:05:09.632 --> 00:05:16.589
private RFC 1918 addresses are 10/8, 172.16/12 and 192.168/16, and reach the internet through

54
00:05:16.589 --> 00:05:22.424
NAT. A 169.254 address means APIPA, so DHCP failed, and 127.0.0.1 is loopback.

55
00:05:22.424 --> 00:05:29.381
Classes A, B and C have default masks of /8, /16 and /24. Next, we'll learn to split networks

56
00:05:29.381 --> 00:05:31.700
with subnetting, CIDR and VLSM.
