Labs / The Switchyard / IPv6

Lab 1 of 4 · IPv6

IPv6 basics: addresses that build themselves

IPv6 explained: a card builds its own addresses and finds neighbours without ARP.

Open this lab Pro 4 steps

The idea

A laptop, a phone and homeRouter, a Router, share one network. You will see IPv6 at work: a card gives itself an address, finds its neighbours with ICMPv6, and learns its network's prefix from the router.

ARP's job, done by ICMPv6
ARP's job, done by ICMPv6
Half from the router, half from the card
Half from the router, half from the card

Steps

  1. Two IPv6 addresses on one card

    Nobody typed an IPv6 address into the laptop. List its IPv6 addresses and its card's MAC address, to see where they came from.

    laptop:~# ip -6 addr show dev eth0
    laptop:~# ip link show eth0
  2. Talking with link-local addresses

    Link-local addresses work with no router at all, so neighbours can always talk. Ping the phone's link-local address bare, then with the laptop's card after a %.

    laptop:~# ping -c1 -W2 fe80::42:aff:fe00:10b
    laptop:~# ping -c1 -W2 fe80::42:aff:fe00:10b%eth0

Pro

2 more steps in the app

  1. Neighbour discovery replaces ARP
  2. SLAAC: the router announces the prefix
Get Pro

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Open this lab