DE Launch

Online course · free · no account IPv6 basics

Seven units take you from the structure of an IPv6 address to your own IPv6 network. With videos, theory, quizzes, exercises with solutions and hands-on labs in the leyoNET network simulator. Designed as a training concept for vocational school and higher education (colleges and universities of applied sciences), just as suitable for self-study.

  • 7 units
  • 7 videos
  • 7 labs
  • 14 lessons

An IPv6 address, 128 bits

2001:0db8:acad:0001:0000:0000:0000:0010

2001:db8:acad:1::10/64

  • 48 bitsprefix from the provider
  • 16 bitssubnet
  • 64 bitsinterface ID (device)

How the course works

IPv6 has existed since 1998, and a large share of internet traffic runs over it today. Yet many curricula barely cover it. This course closes the gap. Every unit follows the same five steps (AVIVA, a model widely used in Swiss vocational schools):

  1. ArriveWhat the unit is about and what you can do afterwards: its learning goals.
  2. Activate prior knowledgeA short quiz with instant feedback picks up what you already know.
  3. InformA video of about three minutes and the theory to read.
  4. PractiseExercises with solutions you can reveal, then the lab in leyoNET.
  5. EvaluateReflection questions: what is clear, what is not yet? With thoughts on possible answers.

What you will be able to do

  • read and shorten IPv6 addresses and determine prefixes
  • tell address types and their scope apart
  • explain and observe ICMPv6, Neighbor Discovery, SLAAC and DHCPv6
  • plan, configure and run an IPv6 network
  • explain IPv6 clearly to someone without technical knowledge

Who it is for

  • IT apprentices from their second year who know IPv4 and subnetting
  • students at colleges and universities of applied sciences, as an introduction or for revision
  • teachers who want to teach IPv6
  • practitioners who want to refresh their knowledge

All you need is a browser. leyoNET runs at app.leyonet.ch, without an account.

Up to date with the standards

  • IPv6 per RFC 8200, addresses per RFC 4291 and RFC 5952
  • DHCPv6 per RFC 9915 (replaces RFC 8415)
  • Interface IDs per RFC 8064 and RFC 7217, temporary addresses per RFC 8981
  • Second documentation range 3fff::/20 (RFC 9637)

leyoNET automatically checks every week whether a cited standard has been replaced.

  1. 1Structure of an IPv6 address3:23 · Video · Lab ★★
  2. 2Address types and scope2:46 · Video · Lab ★★
  3. 3ICMPv63:09 · Video · Lab ★★★
  4. 4Neighbor Discovery and SLAAC3:00 · Video · Lab ★★★
  5. 5DHCPv6 and DNS2:42 · Video · Lab ★★★
  6. 6Lab: my first IPv6 network2:00 · Video · Lab ★★★★
  7. 7Dual stack and outlook2:26 · Video · Lab ★★★ · Final test

Unit 1 of 7

Structure of an IPv6 address

  1. You explain why IPv6 is needed.
  2. You read an IPv6 address, shorten it per RFC 5952 and expand it again.
  3. You distinguish prefix and interface ID and determine the prefix of an address.
  4. You give a device an IPv6 address manually and test it with ping.

Activate prior knowledge Warm-up quiz

  1. How many bits does an IPv4 address have?
    Answer

    32 bits.

  2. How many bits does one hexadecimal digit represent?
    Answer

    4 bits (16 values, 0 to f).

  3. What does NAT do in an IPv4 home network?
    Answer

    Many private addresses share one public address.

Inform Video and theory

Structure of an IPv6 address 3:23

Spoken in German, with English and German subtitles.

Chapters

Why IPv6?

IPv4 has 32 bits, about 4.3 billion addresses. The central IANA pool ran out in 2011, and the European registry RIPE NCC handed out its last IPv4 blocks in 2019. NAT only shifted the problem: devices behind NAT cannot be reached directly from outside, and providers even have to share one address among many customers (carrier-grade NAT).

IPv6 has 128 bits. That is about 3.4 · 1038 addresses, enough for every device to get its own globally unique address again. The standard is RFC 8200 (2017, replacing RFC 2460 from 1998).

Notation

The 128 bits are split into eight blocks of 16 bits. Each block is written as four hexadecimal digits, separated by colons:

2001:0db8:acad:0001:0000:0000:0000:0010

Nobody writes it out like that. RFC 5952 defines how to shorten an address so that everyone uses the same short form:

  1. In each block, drop leading zeros: 0db8 → db8, 0000 → 0.
  2. Replace the longest run of zero blocks (at least two) once with ::. On a tie, the first one.
  3. A single zero block stays 0.
  4. Use lower case.
2001:0db8:acad:0001:0000:0000:0000:0010
→ 2001:db8:acad:1:0:0:0:10
→ 2001:db8:acad:1::10

:: may appear only once. Otherwise nobody could tell how many zero blocks are missing where.

Prefix and interface ID

As with IPv4, an address consists of a network part and a device part. Instead of a subnet mask, IPv6 only uses the prefix length, e.g. /64.

  • The first 64 bits are the prefix. A company usually gets a /48 from its provider, home customers often a /56. The bits up to 64 are the subnet ID: a /48 yields 216 = 65,536 subnets.
  • The last 64 bits are the device's interface ID.

An IPv6 LAN is practically always a /64 (RFC 7421 explains why). Automatic addressing (unit 4) relies on it. So subnetting no longer counts hosts per network, it counts subnets.

To find the prefix of an address, set all bits after the prefix length to zero: 2001:db8:acad:1:20c:29ff:fe12:3456/64 becomes 2001:db8:acad:1::/64.

No broadcast address. In IPv4 you calculate network and broadcast addresses. IPv6 has no broadcast (unit 2), and every address of a /64 is usable. The only thing left to calculate is the prefix.

The IPv6 header

The header is always 40 bytes and simpler than in IPv4: version, traffic class, flow label, payload length, next header, hop limit (instead of TTL), source and destination. There is no header checksum, and routers no longer fragment packets. Extras go into extension headers, pointed to by next header.

Documentation addresses

Examples and exercises use reserved ranges that never appear on the internet: 2001:db8::/32 (RFC 3849) and, since 2024, also 3fff::/20 (RFC 9637). This course uses 2001:db8:acad::/48.

Practise Exercises

  1. Shorten per RFC 5952: 2001:0db8:0000:0000:0001:0000:0000:00ab

    Show solution

    2001:db8::1:0:0:ab. There are two runs of two zero blocks each. On a tie the first becomes ::, the second stays 0:0.

  2. Shorten: fe80:0000:0000:0000:0a00:27ff:fe4e:66a1

    Show solution

    fe80::a00:27ff:fe4e:66a1

  3. Shorten: 2001:0DB8:0000:00AB:0000:0000:0000:0001

    Show solution

    2001:db8:0:ab::1. The longest zero run (three blocks) becomes ::, the single zero block stays 0, lower case.

  4. Write out in full: 2001:db8:acad::1 and ::1

    Show solution

    2001:0db8:acad:0000:0000:0000:0000:0001 and 0000:0000:0000:0000:0000:0000:0000:0001 (the loopback address).

  5. Is 2001:db8::abcd::1 a valid address?

    Show solution

    No. :: appears twice. You could not tell whether e.g. 2001:db8:0:abcd:0:0:0:1 or 2001:db8:0:0:0:abcd:0:1 is meant.

  6. What is the prefix of 2001:db8:acad:1:20c:29ff:fe12:3456/64? And of 2001:db8:acad:1234::1/56?

    Show solution

    2001:db8:acad:1::/64. With /56 only the first 8 bits of the fourth block remain: 1234 → 1200, so 2001:db8:acad:1200::/56.

  7. Your company receives 2001:db8:acad::/48. How many /64 subnets can you create? What are the first and the last?

    Show solution

    64 − 48 = 16 bits of subnet ID, so 65,536 subnets, from 2001:db8:acad:0::/64 to 2001:db8:acad:ffff::/64.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 1: Structure of an IPv6 address”

Answer the questions in the task window, give PC 1 and PC 2 a fixed address in 2001:db8:acad:1::/64 and test with ping. “Check” shows what is already right.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. Explain in two sentences, to someone without IT knowledge, why IPv6 is needed.

    Thoughts on an answer

    For example: “Every device on the internet needs an address, just as a house needs a postal address. The old addresses have run out; IPv6 has so many that they will never run out again.”

  2. Why was it standardised how to shorten an address (RFC 5952), even though all spellings mean the same address?

    Thoughts on an answer

    People and programs often compare addresses as text, e.g. in logs, firewall rules or when troubleshooting. With only one short form, an address can be found reliably.

  3. Quick round: what was new for you today, and what is still unclear?

    Tip

    Write down the unclear points. The quiz of the next unit starts with exactly this material.

Next: unit 2

Unit 2 of 7

Address types and scope

  1. You distinguish unicast, multicast and anycast.
  2. You recognise global unicast, link-local, unique local, loopback and multicast by their prefix.
  3. You explain why IPv6 needs no broadcast.
  4. You connect a global and a private IPv6 network through a router.

Activate prior knowledge Warm-up quiz

  1. What is 2001:0db8:0000:0000:0000:0000:0000:0001 in short form?
    Answer

    2001:db8::1

  2. Where does an IPv4 packet to 255.255.255.255 go?
    Answer

    To all devices in the local network.

  3. Which IPv4 range is private (RFC 1918)?
    Answer

    192.168.0.0/16

Inform Video and theory

Address types and scope 2:46

Spoken in German, with English and German subtitles.

Chapters

Three kinds of addresses

  • Unicast: exactly one interface.
  • Multicast: a group of interfaces. Members of the group accept the packet.
  • Anycast: the same address on several devices; the nearest one answers. The DNS root servers work like this, for example.

Broadcast is gone. Where IPv4 sends “to everyone”, IPv6 uses a suitable multicast group. That way a packet only bothers the devices that need it.

The main ranges (RFC 4291)

TypePrefixValidUsed for
Global unicast2000::/3worldwidepublic addresses, routed on the internet
Link-localfe80::/10own link onlyevery interface has one, without a router or configuration; Neighbor Discovery and routing protocols use it
Unique local (ULA)fc00::/7, in use fd00::/8within your own networkprivate addresses (RFC 4193), routed inside the company, never on the internet
Multicastff00::/8depends on scopegroups, e.g. ff02::1 all nodes on the link, ff02::2 all routers
Loopback::1/128the device itselflike 127.0.0.1
Unspecified::/128–“no address yet”, e.g. as source while starting up
Documentation2001:db8::/32, 3fff::/20never routedexamples and exercises (RFC 3849, RFC 9637)

In IPv6 an interface always has several addresses: at least one link-local, usually plus one or more global ones. Which source address a device picks is defined in RFC 6724.

Unique local addresses

A ULA starts with fd, followed by a random 40-bit global ID, then 16 bits of subnet and 64 bits of interface ID, e.g. fd3c:7a91:52e0:b::1/64. The randomness makes clashes unlikely if two companies ever merge their networks. The former site-local addresses fec0::/10 were abolished by RFC 3879.

Multicast and scope

The fourth hex digit of a multicast address is its scope, i.e. how far the group reaches: ff02:: link only, ff05:: site, ff0e:: global. Routers never forward ff02:: packets.

fe80 = here only · fd = in our network · 2 or 3 at the front = worldwide · ff = group. And: no broadcast.

Practise Exercises

  1. Determine the type: fe80::1, 2a02:1205:5000::7, fd12:3456:789a::25, ff02::2, ::1, ff05::1:3

    Show solution

    Link-local · global unicast · unique local · multicast (all routers on the link) · loopback · multicast with site scope (all DHCPv6 servers at the site).

  2. A PC shows three addresses: fe80::21a:2bff:fe3c:4d5e, 2001:db8:acad:a:21a:2bff:fe3c:4d5e and 2001:db8:acad:a:9d3e:1c47:8b20:6f11. Is that an error?

    Show solution

    No. The first is the link-local address, the second a global address with a stable interface ID, the third a temporary address for outgoing connections (privacy extensions, RFC 8981). Several addresses per interface are normal in IPv6.

  3. Your company picks the ULA global ID 3c:7a91:52e0. What is the prefix for subnet 11 (hexadecimal b)?

    Show solution

    fd3c:7a91:52e0:b::/64

  4. Why can you not ping fe80::1 across a router?

    Show solution

    Link-local addresses are only valid on their own link, and routers never forward them. Every link has its own fe80::/64, which is why a ping must also name the interface, e.g. ping fe80::1%eth0.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 2: Address types and scope”

The router connects a global network (office) and a unique local network (lab). Give it its addresses, watch how the PCs build theirs, and answer the questions.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. Why does every interface need a link-local address, even if it has a global one?

    Thoughts on an answer

    It works immediately and without a router. Neighbor Discovery, router advertisements and routing protocols such as OSPFv3 talk over link-local. Even if the global prefix changes (new provider), neighbours stay reachable.

  2. Do you need private addresses (ULA) if there are enough global ones? Give one argument for and one against.

    Thoughts on an answer

    For: internal services keep their addresses when the provider changes; networks without internet access (lab, production). Against: extra addresses and rules make the network more complex, and security comes from the firewall, not from private addresses.

  3. Quick round: which address type is not quite clear to you yet?

    Tip

    Open a device in the leyoNET simulation: ipconfig shows all its IPv6 addresses with their type.

Next: unit 3

Unit 3 of 7

ICMPv6: ping, traceroute and error messages

  1. You explain what ICMPv6 is for and why IPv6 cannot work without it.
  2. You know the main message types and their numbers.
  3. You use ping and traceroute to find and fix a fault in an IPv6 network.

Activate prior knowledge Warm-up quiz

  1. Which address does every IPv6 interface have, even without a router?
    Answer

    Link-local.

  2. In IPv4, what happens when a packet's TTL drops to 0?
    Answer

    Drop it and report “time exceeded”.

  3. Where does a packet to ff02::1 go?
    Answer

    To all nodes on the link.

Inform Video and theory

ICMPv6 3:09

Spoken in German, with English and German subtitles.

Chapters

More than just ping

ICMPv6 (RFC 4443) reports errors and supports diagnostics, like ICMP in IPv4. In IPv6 it matters far more, though: Neighbor Discovery (instead of ARP), router advertisements and multicast group management all run over ICMPv6. Without ICMPv6 a device finds neither its neighbours nor its router.

Every message has a type, a code (subtype) and a checksum. Types 0 to 127 are error messages, 128 to 255 informational.

TypeNameWhen
1Destination Unreachabledestination cannot be reached, e.g. no route (code 0) or the address does not answer (code 3)
2Packet Too Bigpacket larger than the MTU of the next link
3Time Exceededhop limit dropped to 0 (traceroute)
4Parameter Problemerror in the header
128 / 129Echo Request / Echo Replyping
133–137Neighbor Discoveryrouter solicitation and advertisement, neighbor solicitation and advertisement, redirect (unit 4)

Packet Too Big and the minimum MTU

Routers do not fragment IPv6 packets. If a packet is too large, the router drops it and sends “packet too big” back, with the right MTU. The sender then makes its packets smaller (path MTU discovery). Every IPv6 link must carry at least 1280 bytes.

Traceroute

Traceroute sends packets with hop limit 1, 2, 3 … Each router on the way drops “its” packet and reports back with time exceeded. That builds the list of hops. If a router does not answer, the fault is often there or on the way back.

PC A> traceroute 2001:db8:acad:2::10 1 2001:db8:acad:1::1 1 ms 2 * * * 3 * * *

Here R1 answers, but R2 does not. R2 receives the packet but knows no way back to PC A: the return route is missing.

Never block ICMPv6 across the board. RFC 4890 recommends which types a firewall must let through: at least packet too big, time exceeded, destination unreachable, parameter problem and, on the local link, Neighbor Discovery.

Practise Exercises

  1. Match: type 128, type 129, type 3, type 2.

    Show solution

    128 echo request · 129 echo reply · 3 time exceeded · 2 packet too big

  2. A server sends 1500-byte packets. On the way there is a link with MTU 1400. What happens?

    Show solution

    The router in front of that link drops the packet and sends ICMPv6 packet too big with MTU 1400 to the server, which then sends smaller packets. If a firewall blocks this message, connections hang (e.g. web pages never finish loading).

  3. A ping from PC A to PC B returns “destination unreachable, code 0 (no route)” from router R1. Where do you look?

    Show solution

    In R1's routing table: it lacks a route to PC B's network.

  4. A firewall rule blocks “ICMPv6 from anywhere”. What does that do to the local LAN?

    Show solution

    Neighbor Discovery stops working: devices find neither their neighbours nor the router and get no address via SLAAC. The network practically comes to a halt.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 3: ICMPv6 – ping, traceroute and error messages”

PC A cannot reach PC B. Find the fault with ping, traceroute and the packet list, and fix it with a static IPv6 route.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. Many admins blocked ICMP in IPv4 “so that nobody can ping us”. Why is that a bad idea in IPv6?

    Thoughts on an answer

    IPv6 needs ICMPv6 to operate: Neighbor Discovery and path MTU discovery. Echo requests can be filtered specifically without blocking everything else. Blocking hardly makes a device invisible anyway.

  2. What helped you most when troubleshooting in the lab: ping, traceroute or the packet list? Why?

    Thoughts on an answer

    Often traceroute shows where it stops, and the packet list shows why: the packet arrives, but the reply never comes back. Good troubleshooting combines both.

Next: unit 4

Unit 4 of 7

Neighbor Discovery and SLAAC

  1. You name the five Neighbor Discovery messages and their purpose.
  2. You build the solicited-node multicast address for an address.
  3. You explain step by step how a device gets an address via SLAAC.
  4. You know EUI-64 and why stable, random-looking interface IDs are recommended today.

Activate prior knowledge Warm-up quiz

  1. What ICMPv6 type number does echo request have?
    Answer

    128.

  2. How does an IPv4 PC find the gateway's MAC address?
    Answer

    With ARP (broadcast).

  3. How many bits does a MAC address have?
    Answer

    48 bits.

Inform Video and theory

Neighbor Discovery and SLAAC 3:00

Spoken in German, with English and German subtitles.

Chapters

Neighbor Discovery (RFC 4861)

NDP replaces ARP and a lot more. It consists of five ICMPv6 messages:

TypeMessageFrom → toPurpose
133Router Solicitation (RS)device → ff02::2“Is there a router here?”
134Router Advertisement (RA)router → ff02::1 or deviceprefix, default router, M and O flags, DNS servers
135Neighbor Solicitation (NS)device → solicited-node group“Which MAC has this address?” and duplicate address detection
136Neighbor Advertisement (NA)device → asker“This address is mine, my MAC is …”
137Redirectrouter → device“There is a better next router for this destination.”

Resolving addresses without broadcast

Instead of asking everyone, a device sends the neighbor solicitation to the target's solicited-node multicast address: ff02::1:ff plus the last 24 bits of the address it is looking for. For 2001:db8:acad:10::5a that is ff02::1:ff00:5a. Only devices whose address ends the same way listen to this group, usually exactly one. Answers go into the neighbor cache, the ARP table of IPv6.

SLAAC: addresses without a server (RFC 4862)

  1. The device builds its link-local address (fe80:: + interface ID).
  2. Duplicate address detection: it asks via neighbor solicitation whether someone already has the address. If nobody answers, it is its own.
  3. It sends a router solicitation to ff02::2.
  4. The router answers with a router advertisement: the prefix, e.g. 2001:db8:acad:10::/64, with the A flag set. Routers also send RAs regularly on their own.
  5. The device appends its interface ID to the prefix, checks the new address with DAD again, and uses the router (its link-local address) as default gateway.

Where does the interface ID come from?

EUI-64 (common in the past): split the MAC in the middle, insert ff:fe, and flip the seventh bit of the first byte. 00:1a:2b:3c:4d:5e becomes 021a:2bff:fe3c:4d5e. That is easy to follow, so leyoNET shows this variant.

Today RFC 8064 recommends no longer using the MAC address: otherwise a notebook could be recognised by the same interface ID in every network. Instead, devices build a stable, random-looking ID per network (RFC 7217) and, for outgoing connections, additional temporary addresses that change regularly (RFC 8981). Windows, macOS, Linux, Android and iOS already work this way.

Router advertisement = prefix and gateway · neighbor solicitation/advertisement = ARP replacement and duplicate check · all via multicast, never broadcast.

Security: any device on the LAN could send forged router advertisements and pose as the gateway. Switches protect against this with RA guard: router advertisements are only allowed on the ports of the real routers.

Practise Exercises

  1. Build the solicited-node multicast address for 2001:db8:acad:10::5a and for fe80::21a:2bff:fe3c:4d5e.

    Show solution

    ff02::1:ff00:5a and ff02::1:ff3c:4d5e (the last 24 bits: 00:005a and 3c:4d5e).

  2. Build the EUI-64 interface ID from 00:1a:2b:3c:4d:5e and from a4:83:e7:11:22:33.

    Show solution

    21a:2bff:fe3c:4d5e and a683:e7ff:fe11:2233 (a4 = 1010 0100, seventh bit flipped: 1010 0110 = a6).

  3. Put in the right order: router advertisement · build link-local · router solicitation · build global address · DAD for the link-local address

    Show solution

    Build link-local → DAD → router solicitation → router advertisement → build global address (and DAD again).

  4. A notebook receives a neighbor solicitation for its own, just chosen address, with source ::. What does that mean?

    Show solution

    Another device is running duplicate address detection for the same address. Both want to use it right now; the address is a duplicate and must not be used.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 4: Neighbor Discovery and SLAAC”

Give the router an address and watch in the packet list how router advertisements, neighbor solicitations and advertisements flow and how the devices build their addresses.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. Compare ARP and Neighbor Discovery: what does IPv6 solve better?

    Thoughts on an answer

    Multicast instead of broadcast (only affected devices are disturbed), built-in duplicate address checks, router discovery and addressing in the same protocol, and everything runs over IP rather than a separate protocol below IP.

  2. What traces does a notebook with EUI-64 addresses leave when it moves daily between school, home and a café? How do modern systems solve this?

    Thoughts on an answer

    The interface ID would be the same everywhere, so websites could recognise the device across networks. Today the ID changes per network (RFC 7217), and there are temporary addresses for outgoing connections (RFC 8981).

  3. Quick round: can you list the SLAAC steps from memory?

    Tip

    Draw them as a sequence diagram with three columns: notebook, switch, router. Then compare it with the packet list in leyoNET.

Next: unit 5

Unit 5 of 7

DHCPv6 and DNS

  1. You distinguish SLAAC, stateless and stateful DHCPv6 and know the M and O flags.
  2. You describe the sequence solicit, advertise, request, reply.
  3. You set up DHCPv6 and a DNS server for an IPv6 network and test it with an AAAA record.

Activate prior knowledge Warm-up quiz

  1. Which message announces the prefix and the default router in IPv6?
    Answer

    Router advertisement.

  2. In which order does DHCP run in IPv4?
    Answer

    Discover, offer, request, acknowledge (DORA).

  3. Which DNS record points to an IPv4 address?
    Answer

    A.

Inform Video and theory

DHCPv6 and DNS 2:42

Spoken in German, with English and German subtitles.

Chapters

Three ways to an address

The router advertisement decides how a device gets its address:

MethodRA flagsAddress fromDNS server from
SLAACA=1, M=0, O=0the device itselfRA (RDNSS, RFC 8106)
SLAAC + stateless DHCPv6A=1, O=1the device itselfDHCPv6 (and RA)
Stateful DHCPv6M=1DHCPv6 serverDHCPv6 (and RA)

The default gateway always comes from the router advertisement. DHCPv6 has no gateway option at all.

Sequence (RFC 9915)

  1. Solicit: the client looks for servers, sent to the multicast address ff02::1:2, UDP port 547.
  2. Advertise: servers offer an address (to the client's port 546).
  3. Request: the client picks an offer.
  4. Reply: the server confirms; the address is valid.

With rapid commit two messages are enough (solicit, reply). A client identifies itself not by its MAC address but by a DUID. Providers also use DHCPv6 for prefix delegation: the internet box receives e.g. a /56 and hands out /64s from it to its networks.

RFC 9915 has been the current DHCPv6 standard (Internet Standard) since January 2026, replacing RFC 8415; nothing in the sequence changed for this course.

DNS with IPv6

Names point to IPv6 addresses via AAAA records (RFC 3596), e.g. www.kurs.example AAAA 2001:db8:acad:30::80. A device with IPv4 and IPv6 asks for both records and usually prefers IPv6. It learns the DNS server via RDNSS in the router advertisement or via DHCPv6.

Practise Exercises

  1. Which method fits? a) A school network; IT wants to match every address in the logs to a device. b) A guest Wi-Fi, internet only. c) A home network.

    Show solution

    a) Stateful DHCPv6 (M=1); the leases are recorded on the server. b) SLAAC with DNS via RDNSS, simple and serverless. c) SLAAC, as internet boxes do.

  2. A router sends RAs with M=1, but there is no DHCPv6 server on the network. What happens?

    Show solution

    The devices wait in vain for an answer to their solicit. They only have their link-local address (and a SLAAC address if the prefix also carries the A flag).

  3. Write the DNS record so that intranet.kurs.example points to 2001:db8:acad:30::10.

    Show solution

    intranet.kurs.example. AAAA 2001:db8:acad:30::10

  4. The internet box receives 2001:db8:7c00::/56 via prefix delegation. How many /64 networks can it build?

    Show solution

    264−56 = 28 = 256 networks, from 2001:db8:7c00:0::/64 to 2001:db8:7c00:ff::/64.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 5: DHCPv6 and DNS”

Switch the network from SLAAC to DHCPv6, give the PCs the DNS server and open http://www.kurs.example/. The packet list shows solicit, advertise, request and reply.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. You are setting up the network of a small company. SLAAC or DHCPv6? Give reasons.

    Thoughts on an answer

    SLAAC is simpler and needs no server, but addresses are hard to match to devices. DHCPv6 gives overview and control (logs, fixed leases) but needs a server and is not supported by every device. Often SLAAC is used for clients and fixed addresses for servers and printers.

  2. Why does a device get its gateway from the router advertisement even with DHCPv6? Is that an advantage or a drawback?

    Thoughts on an answer

    The router knows best whether it is currently acting as gateway. If it fails, its router lifetime expires and devices pick another one. Drawback: if forged router advertisements are not prevented (RA guard), devices can be redirected.

Next: unit 6

Unit 6 of 7

Lab: my first IPv6 network

  1. You plan the addresses for a company network with several IPv6 subnets.
  2. You configure routers, server and clients: SLAAC, DHCPv6, static routing and DNS.
  3. You test your network systematically and find faults on your own.

Activate prior knowledge Warm-up quiz

  1. Which RA flag sends devices to the DHCPv6 server for their address?
    Answer

    M.

  2. On which UDP port does a DHCPv6 server listen?
    Answer

    547.

  3. Where does a device with a DHCPv6 address learn its default gateway?
    Answer

    From the router advertisement.

Inform Assignment and approach

Lab: My first IPv6 network 2:00

Spoken in German, with English and German subtitles.

Chapters

The assignment

The company has received 2001:db8:acad::/48. Build the whole network in leyoNET. Devices and cables are in place; nothing is configured.

  • Administration 2001:db8:acad:10::/64: addresses via SLAAC
  • Production 2001:db8:acad:20::/64: addresses via DHCPv6
  • Servers 2001:db8:acad:30::/64: server fixed at 2001:db8:acad:30::10, both web and DNS server
  • Transfer network R1–R2: 2001:db8:acad:ff::/64
  • Static routing (or OSPFv3 if you already have experience)
  • intranet.kurs.example points to the server via AAAA; both LANs get it as their DNS server

Approach

  1. Plan: create the address plan as a table (device, port, address, gateway). Note it in leyoNET in an area or on the worksheet.
  2. Routers: addresses on all ports, DHCPv6 and DNS server per LAN, routes.
  3. Server: fixed address, gateway, AAAA record.
  4. Verify: in the simulation use ipconfig, ping, traceroute and the browser, then “Check” in the task window.

Bottom up: cables and link-local → address and prefix → gateway (from the RA) → routes on both routers, there and back → DNS server and AAAA record.

Practise Planning and lab

  1. Create the address plan for R1, R2 and the server.

    Show sample solution
    DevicePortAddressNote
    R1eth02001:db8:acad:ff::1/64transfer to R2
    R1eth12001:db8:acad:10::1/64administration, SLAAC, DNS …:30::10
    R2eth02001:db8:acad:ff::2/64transfer to R1
    R2eth12001:db8:acad:20::1/64production, DHCPv6, DNS …:30::10
    R2eth22001:db8:acad:30::1/64servers
    Servereth02001:db8:acad:30::10/64gateway 2001:db8:acad:30::1
  2. Which static routes do R1 and R2 need?

    Show solution

    R1: 2001:db8:acad:20::/64 and 2001:db8:acad:30::/64 via 2001:db8:acad:ff::2. R2: 2001:db8:acad:10::/64 via 2001:db8:acad:ff::1. Alternatively a default route ::/0 via R2 on R1.

  3. PC V1 cannot reach PC P1, and traceroute ends after R1. What could be wrong?

    Show solution

    R2 does not know the way back to the administration network, or R1 does not know the way to production. Always check routes in both directions.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 6: Lab “My first IPv6 network””

Allow one to two lessons. In the end all networks reach each other, and both PCs load the intranet page by name and by address.

Open lab Worksheet PDF, in German

Evaluate Reflection

  1. What was harder than expected while building it, and how did you solve it?

    Thoughts on an answer

    Common ones: the return routes, the DNS server per LAN, and the long address notation. A clean address plan before configuring saves the most time.

  2. What else would you plan for in a real company network?

    Thoughts on an answer

    For example: a firewall with IPv6 rules (including ICMPv6 per RFC 4890), RA guard on the switches, a dynamic routing protocol, redundancy, monitoring, and documentation that includes the IPv6 addresses.

Next: unit 7

Unit 7 of 7

Wrap-up: dual stack and outlook

  1. You explain dual stack and add IPv6 to an IPv4 network without disturbing IPv4.
  2. You know the main transition mechanisms: DS-Lite, NAT64 with DNS64, and 464XLAT.
  3. You assess what you have learnt in the course and test your knowledge in the final test.

Activate prior knowledge Warm-up quiz

  1. Which DNS record points to an IPv6 address?
    Answer

    AAAA.

  2. How do you write an IPv6 address in a URL?
    Answer

    In square brackets.

  3. What does a router need so that devices in a new /64 build addresses via SLAAC?
    Answer

    An address in the /64.

Inform Video and theory

Dual stack and outlook 2:26

Spoken in German, with English and German subtitles.

Chapters

Dual stack

The usual route to IPv6: every device gets IPv6 in addition, and IPv4 keeps running unchanged. When a device looks up a name, it gets A and AAAA records and usually tries IPv6 first. If that is not fast enough, it uses IPv4 (“happy eyeballs”). That way IPv6 can be introduced step by step.

But dual stack also means two address plans, two firewalls, two sources of error. In the long run the goal is therefore IPv6-only.

Transition mechanisms

MechanismSituationHow it works
DS-Lite (RFC 6333)provider has too little IPv4, customer still needs IPv4The internet box wraps IPv4 in IPv6 and sends it to the provider's AFTR, which applies NAT to a shared public address. Widespread in Switzerland.
NAT64 + DNS64 (RFC 6146, RFC 6147)IPv6-only network, some destinations IPv4-onlyDNS64 synthesises an AAAA answer in the prefix 64:ff9b::/96 for IPv4 destinations, NAT64 translates the packets to IPv4.
464XLAT (RFC 6877)IPv6-only mobile networksThe smartphone translates IPv4 from apps locally into IPv6, then NAT64 at the provider.

Outlook

  • Security: every device has a global address; protection comes from the firewall (stateful, “inside to outside allowed”), not from NAT. RA guard and ICMPv6 filtering per RFC 4890 are part of it.
  • Migration: inventory, address plan, introduce dual stack, test services, finally retire IPv4.
  • Keep learning: you can try OSPFv3 and BGP with IPv6 directly in leyoNET. The wiki has the theory for reference.

Practise Exercises

  1. A web server has an A and an AAAA record. The IPv6 path is broken, IPv4 works. What do users notice?

    Show solution

    Thanks to happy eyeballs usually just a small delay: the browser tries both paths in quick succession and uses whichever answers first. Without this mechanism pages load very slowly or not at all.

  2. On the mobile network your smartphone only has an IPv6 address. Still, an app hard-wired to an IPv4 address works. How?

    Show solution

    464XLAT: the smartphone translates the IPv4 packet locally into IPv6 (CLAT), and the provider translates it back to IPv4 with NAT64.

Lab in leyoNET

leyonet> Exercise “IPv6 BC 7: Wrap-up – dual stack and outlook”

Add IPv6 to a running IPv4 network. The web page must load over both protocols. Want more? The “DS-Lite” exercise in the catalogue shows the tunnel to the provider.

Open lab Worksheet PDF, in German

Evaluate Final test

  1. What is 2001:0db8:0000:0001:0000:0000:0000:0001 per RFC 5952?
    Answer

    2001:db8:0:1::1

  2. Which address is a unique local address?
    Answer

    fd3c:7a91:52e0::1

  3. What replaces the ARP request in IPv6?
    Answer

    Neighbor solicitation.

  4. A router drops a packet that is too large. What does it send back?
    Answer

    Packet too big.

  5. Where does a device get its prefix with SLAAC?
    Answer

    From the router advertisement.

  6. Why does RFC 8064 no longer recommend EUI-64 interface IDs?
    Answer

    Privacy.

  7. What does DHCPv6 never provide?
    Answer

    The default gateway.

  8. A network has only IPv6 but must reach IPv4 servers. What fits?
    Answer

    NAT64 with DNS64.

Evaluate Self-assessment and review

Tick what you feel confident about. Nothing is stored or sent.

  1. What do you take from the course into your working life?

    Thoughts on an answer

    Perhaps: check whether IPv6 is already running in your own company (it is often on without anyone knowing), review the IPv6 firewall rules, and add IPv6 to the network documentation.

  2. How well did the videos, theory, exercises and labs help you? What would you change?

    Give feedback

    We welcome feedback via the contact page. In a course with a teacher, this question belongs in the closing round.

For teachers: running the course

The course is based on an education concept for an IPv6 basics course at vocational school or in higher education: seven evenings of two lessons each, hybrid (on site and online). The page works just as well for self-study.

TimeContentMethod
17:55–18:40Arrive, warm-up quiz, video and theory, exercisesQuiz in plenary (competition), talk with video, individual work
18:40–18:45Break, open the windows
18:45–19:30Lab in leyoNET, reflection, goodbyeLab work, quick round with the reflection questions

What you need

Materials

Assessment

  • The lab of unit 6 works well as a practical assessment.
  • “Evaluate submissions” in leyoNET gives you the achieved goals of all project files as a table.
  • Create your own IPv6 tasks and exams under “Tools → Create task”.

Support leyoNET

The course, the videos, the worksheets and leyoNET itself are free, without ads and without an account. If you would like to support the work on leyoNET and the training material, you can do so voluntarily on Patreon. Every contribution helps to make more courses and videos.

Support on Patreon