WEBVTT
Kind: captions
Language: en

1
00:00:00.000 --> 00:00:06.260
Welcome to lesson sixteen. Objective 1.8 ends with IPv6 addressing, and that's our topic.

2
00:00:06.260 --> 00:00:11.606
We'll cover two ideas. First, why IPv6 exists and how to read its addresses:

3
00:00:11.606 --> 00:00:18.711
the format, the shortening rules and the main address types. Second, how IPv6 and IPv4 live together,

4
00:00:18.711 --> 00:00:25.675
using dual stack, tunneling and NAT64. This lesson completes objective 1.8 and the whole networking

5
00:00:25.675 --> 00:00:26.800
concepts domain.

6
00:00:27.200 --> 00:00:33.957
IPv4 addresses are 32 bits, which allows about 4.3 billion addresses. That sounded like plenty

7
00:00:33.957 --> 00:00:39.132
in the 1980s, but not with phones, laptops and smart devices everywhere.

8
00:00:39.132 --> 00:00:44.524
On 3 February 2011, IANA handed out its last free blocks of IPv4 addresses.

9
00:00:44.524 --> 00:00:50.059
Private addresses behind NAT only stretched the supply. IPv6 is the real fix:

10
00:00:50.059 --> 00:00:55.665
its addresses are 128 bits long, which allows about 340 undecillion addresses,

11
00:00:55.665 --> 00:00:58.900
enough to give every device a global address.

12
00:00:59.300 --> 00:01:06.558
An IPv6 address is written in hexadecimal, as eight groups of four hex digits separated by colons.

13
00:01:06.558 --> 00:01:12.928
Each hex digit is four bits, so each group is sixteen bits, and eight groups make 128.

14
00:01:12.928 --> 00:01:18.557
Most networks use a /64 prefix: the first sixty-four bits say which network,

15
00:01:18.557 --> 00:01:25.741
and the last sixty-four, the interface ID, identify the device. Prefix lengths use the same slash

16
00:01:25.741 --> 00:01:29.000
notation as CIDR, such as 2001:db8:0:1::/64.

17
00:01:29.400 --> 00:01:37.107
Full addresses are long, so two rules shorten them. Rule one: drop the leading zeros in any group,

18
00:01:37.107 --> 00:01:44.893
so 0db8 becomes db8 and 0042 becomes 42. Rule two: replace one run of all-zero groups with a double

19
00:01:44.893 --> 00:01:52.285
colon. You can use the double colon only once, otherwise nobody could tell how many zeros each

20
00:01:52.285 --> 00:01:59.835
one hides. And never drop trailing zeros: ff00 stays ff00. The loopback address shortens all the

21
00:01:59.835 --> 00:02:00.700
way to ::1.

22
00:02:01.100 --> 00:02:06.924
You can recognize the main types by their first digits. Global unicast addresses,

23
00:02:06.924 --> 00:02:13.826
from 2000::/3, are public and routable, like IPv4 public addresses. Unique local addresses start

24
00:02:13.826 --> 00:02:19.722
with fd and work like RFC 1918 private ones. Link-local addresses start with fe80,

25
00:02:19.722 --> 00:02:25.330
stay on the local link, and every interface has one. Multicast starts with ff.

26
00:02:25.330 --> 00:02:29.500
And IPv6 has no broadcast at all: multicast does that job.

27
00:02:29.900 --> 00:02:36.709
Now the big question: the internet can't switch overnight, so how do both versions coexist?

28
00:02:36.709 --> 00:02:43.668
The most common answer is dual stack. Our online store's web server runs IPv4 and IPv6 at the

29
00:02:43.668 --> 00:02:50.627
same time, with one address of each. DNS publishes an A record for IPv4 and a AAAA record for

30
00:02:50.627 --> 00:02:56.164
IPv6, and each customer connects with whichever version both ends support.

31
00:02:56.164 --> 00:03:02.000
The cost is running two of everything: addressing, firewall rules and routing.

32
00:03:02.400 --> 00:03:09.426
What if the store's branch and headquarters both run IPv6, but the provider between them only

33
00:03:09.426 --> 00:03:16.528
carries IPv4? Tunneling solves it. The router at one end wraps each IPv6 packet inside an IPv4

34
00:03:16.528 --> 00:03:21.967
header, marked as protocol 41, and the router at the far end unwraps it.

35
00:03:21.967 --> 00:03:28.994
Configured tunnels like 6in4 or GRE are set up by hand; 6to4, ISATAP and Teredo build tunnels

36
00:03:28.994 --> 00:03:33.300
automatically. The extra header slightly reduces the MTU.

37
00:03:33.700 --> 00:03:40.935
Some networks, especially mobile ones, give phones only IPv6. How do they reach a site that has

38
00:03:40.935 --> 00:03:46.418
only IPv4? With NAT64 and DNS64. The phone asks DNS for an IPv6 address.

39
00:03:46.418 --> 00:03:53.500
DNS64 finds only an IPv4 one, so it builds an IPv6 address by adding the prefix 64:ff9b::/96.

40
00:03:53.500 --> 00:04:00.431
The phone sends IPv6 packets to it, and the NAT64 gateway translates them to IPv4 and back.

41
00:04:00.431 --> 00:04:05.000
Translation, not wrapping, is the difference from tunneling.

42
00:04:05.400 --> 00:04:11.964
Let's practice. IPv6-only phones that must reach IPv4-only sites need NAT64 with DNS64.

43
00:04:11.964 --> 00:04:19.057
Two IPv6 sites joined across an IPv4-only WAN need a tunnel. Servers that must serve both IPv4

44
00:04:19.057 --> 00:04:26.074
and IPv6 customers run dual stack. And to shorten an address that is 2001:db8 followed by six

45
00:04:26.074 --> 00:04:33.166
groups of zeros and a final 1, drop the leading zeros, then replace the zero run with a double

46
00:04:33.166 --> 00:04:34.600
colon: 2001:db8::1.

47
00:04:35.000 --> 00:04:41.241
On the exam, match the clue to the answer. Mitigating IPv4 address exhaustion means IPv6.

48
00:04:41.241 --> 00:04:48.113
Running both versions on the same devices is dual stack. Carrying IPv6 across an IPv4-only network

49
00:04:48.113 --> 00:04:53.653
is tunneling. IPv6-only clients reaching IPv4-only servers is NAT64 with DNS64.

50
00:04:53.653 --> 00:05:00.315
An address starting fe80 is link-local, fd or fc is unique local, and when a question asks what

51
00:05:00.315 --> 00:05:03.400
replaced broadcast, the answer is multicast.

52
00:05:03.800 --> 00:05:11.281
To recap: IPv4's free pool ran out in 2011, and IPv6 fixes exhaustion with 128-bit addresses written

53
00:05:11.281 --> 00:05:17.341
as eight hex groups. Drop leading zeros and use one double colon to shorten them.

54
00:05:17.341 --> 00:05:24.523
Global addresses come from 2000::/3, fd is unique local, fe80 is link-local and ff is multicast.

55
00:05:24.523 --> 00:05:30.582
To coexist with IPv4, run both with dual stack, wrap IPv6 in IPv4 with tunneling,

56
00:05:30.582 --> 00:05:33.500
or translate with NAT64. Next: routing.
