IPv6 Addressing

IPv6 questions are usually recognition rather than calculation: which type of address is this, and what is the shortened form. Both tables below answer that directly.

Address types

TypePrefixScope and use
Global unicast2000::/3Routable on the internet
Unique localFC00::/7, in practice FD00::/8Private, not routed on the internet
Link-localFE80::/10One link only. Every interface has one
MulticastFF00::/8One to many
All nodes multicastFF02::1Every node on the link
All routers multicastFF02::2Every router on the link
Solicited-node multicastFF02::1:FF00:0/104Used by neighbour discovery
Loopback::1The host itself
Unspecified::No address yet, used during configuration

Shortening rules

RuleFullShort
Drop leading zeros in a group2001:0db8:0000:00422001:db8:0:42
Replace one run of zero groups with ::2001:db8:0:0:0:0:0:12001:db8::1
Only one :: per address2001:0:0:1:0:0:0:12001:0:0:1::1
Loopback0000:0000:0000:0000:0000:0000:0000:0001::1
All zeros0000:0000:0000:0000:0000:0000:0000:0000::

Structure and configuration

TermDetail
Address length128 bits, written as eight groups of four hex digits
Typical subnet/64. The last 64 bits are the interface identifier
Typical site allocation/48, giving 65,536 /64 subnets
SLAACThe host builds its own address from a router advertisement
EUI-64Interface ID derived from the MAC, with FFFE inserted
DHCPv6Stateful assignment, used where SLAAC is not enough
Neighbour discoveryReplaces ARP. Uses ICMPv6
No broadcastIPv6 has none. Multicast does the job

Transition mechanisms

MethodHow it works
Dual stackRun IPv4 and IPv6 together. The preferred approach
6to4 / TeredoTunnel IPv6 inside IPv4
GRE tunnelGeneric tunnel carrying IPv6 across an IPv4 network
NAT64 / DNS64Translate between IPv6-only clients and IPv4 servers

Now test yourself

Memorizing a table is a start. Practice questions are what make it stick, and every answer carries the full explanation.