An IPv6 address has 128 bits, written as eight groups of four hexadecimal digits. Leading zeros are dropped, one run of zero groups may be replaced once by ::: 2001:db8:1:0:0:0:0:10 becomes 2001:db8:1::10.
Type
Example
Purpose
Global
2001:db8:1::10/64
routable worldwide (2001:db8::/32 only for examples)
Link-local
fe80::…
created automatically, only in your own network, e.g. for router neighbours
IPv6 knows no ARP and no broadcast. Instead it uses ICMPv6:
Neighbor solicitation / advertisement: “Who has this address?” to a multicast address, reply with the MAC.
Router solicitation / advertisement: routers announce their prefix, their gateway and options (e.g. DNS server).
SLAAC
With SLAAC a device forms its address itself: prefix from the router advertisement plus a device part from the MAC (EUI-64). No DHCP server is needed. With the M flag set, devices get the address via DHCPv6 instead.
In leyoNET
The project’s IP version is chosen at the top of the toolbar: IPv4 only, both (dual stack) or IPv6 only. Routers get a /64 per interface, end devices “automatic” or a static address.
IPv6 addresses are 128 bits long and written as eight blocks of four hex digits, e.g. 2001:db8:1::10/64. Leading zeros are dropped, one run of zero blocks becomes :: (RFC 5952). 2001:db8::/32 is reserved for examples, private networks use fd00::/8.
IP version of the project (at the top of the toolbar): IPv4 (as before), v4 + v6 (dual stack, both at once) or IPv6 (IPv4 switched off).
Link-local: every IPv6 interface automatically has an address fe80::… formed from the MAC (EUI-64). It is only valid on its own link.
Neighbor Discovery instead of ARP: to find the MAC for an address, a device sends a Neighbor Solicitation to a multicast group; the owner answers with a Neighbor Advertisement. Before using an address, every device checks that it is free (DAD). netsh interface ipv6 show neighbors lists the neighbours.
SLAAC: routers send router advertisements with their prefix (/64). End devices set to “IPv6 automatic” form their own address from it and take the router as default gateway.
DHCPv6: if “Hand out addresses by DHCPv6” is set on the router port, the router advertisement carries the M flag and end devices get their address by Solicit – Advertise – Request – Reply.
Layer 3 switch: every VLAN interface (SVI) gets an IPv6 address and announces its prefix in the VLAN (also over trunks). The switch routes between the VLANs; with “no ip routing” it does not.
Ping and tracert work with IPv6 addresses, ipconfig shows all addresses.
DNS over IPv6: a DNS server can be set on the router port. It is carried in the router advertisement (RDNSS option, RFC 8106) and in the DHCPv6 reply; end devices with a fixed address enter it themselves. AAAA records return IPv6 addresses.
Applications: ping, tracert, browser, e-mail and SSH work over IPv6, by address or by name. In dual stack, a device with a global IPv6 address uses the AAAA record first, otherwise the A record. In URLs an IPv6 address goes in square brackets: http://[2001:db8:1::80]/.
A pure IPv6 network: the PC gets its address and DNS server from the router (SLAAC and RDNSS), the school DNS has AAAA records, the web and mail server sits in the second network.
PC 1 resolves www.schule.example via AAAA, loads the page over TCP and IPv6 and sends a mail by SMTP. The filter “ipv6 and tcp” shows the application traffic.
★★☆☆☆IPv6 BC 1: Structure of an IPv6 address· 7 goals · Worksheet (German)
★★☆☆☆IPv6 BC 2: Address types and scope· 8 goals · Worksheet (German)
★★★☆☆IPv6 BC 3: ICMPv6 – ping, traceroute and error messages· 6 goals · Worksheet (German)
★★★☆☆IPv6 BC 4: Neighbor Discovery and SLAAC· 8 goals · Worksheet (German)
★★★★☆IPv6 BC 6: Lab «My first IPv6 network»· 6 goals · Worksheet (German)
In leyoNET under Tools → Exercise catalogue. Every exercise checks itself.
What leyoNET simplifies
Protocol
Layer
Simplification in the simulation
IPv6
3
No extension headers, no fragmentation, no flow labels; link-local via EUI-64 (RFC 4291), over Ethernet with multicast MAC 33:33:… (RFC 2464)
ICMPv6, Neighbor Discovery
3
Echo, destination unreachable, time exceeded; neighbor and router solicitation/advertisement instead of ARP; no MLD (multicast groups without registration), no redirect; router advertisements every 30 s
SLAAC
3
Address from prefix (/64) and EUI-64; optimistic duplicate address detection (address usable at once, conflicts are reported); no privacy addresses
Standards
RFC 8200 – Internet Protocol, Version 6 (IPv6) Specification
RFC 3849 – IPv6 Address Prefix Reserved for Documentation
Read on
Structure of frames and packetsHow Ethernet frames, IPv4 and IPv6 packets, TCP segments and UDP datagrams nest inside each other, field by field according to the standards, with real bytes from leyoNET.
DHCPv6IPv6 addresses from a server: solicit, advertise, request, reply – when to use DHCPv6 instead of SLAAC.
DS-LiteIPv4 through a provider’s IPv6-only network: the home router tunnels, the AFTR translates with CGNAT.
IPv4Addresses, masks and the IPv4 header: how a packet finds its destination across many networks, with TTL, checksum and private addresses.
ICMP, ping and tracerouteEcho request and reply, “destination unreachable” and “TTL expired”: how ping and traceroute work.
Neighbor Discovery (NDP) and SLAACHow IPv6 devices find neighbours and routers without ARP and without broadcast: the five NDP messages, solicited-node multicast, duplicate address detection and SLAAC.