Octet

What types of IPv6 addresses are there, and what are their prefixes?

Show the answer

Say this first

Three kinds: unicast, multicast and anycast. There is no broadcast. Unicast splits into global unicast (2000::/3, routable on the internet), link-local (fe80::/10, one link only, every interface has one), and unique local (fc00::/7, in practice fd00::/8, private). Multicast is ff00::/8. Anycast has no prefix of its own: it is a unicast address configured on several nodes. Then the specials: ::1 loopback and :: unspecified.

Go deeper

The main table

TypePrefixScopeUsed for
Global unicast (GUA)2000::/3internetnormal addressing
Link-local (LLA)fe80::/10 (used as fe80::/64)one linkNDP, routing protocol neighbors, next hops
Unique local (ULA)fc00::/7, fd00::/8 in useorganizationprivate addressing, not routed on the internet
Multicastff00::/8by scope fieldone to many, replaces broadcast
Anycastfrom unicast spaceanynearest of several nodes
Loopback::1/128the nodesame as 127.0.0.1
Unspecified::/128nonesource before an address exists (DAD), "any" in sockets

Special ranges worth knowing

PrefixMeaning
2001:db8::/32documentation (RFC 3849)
::ffff:0:0/96IPv4-mapped, used inside dual-stack socket APIs
64:ff9b::/96NAT64 well-known prefix (RFC 6052)
2002::/166to4, deprecated
2001::/32Teredo
fec0::/10site-local, deprecated by RFC 3879

Multiple addresses are normal

A typical laptop has a link-local, a stable global address, one or more temporary global addresses, and it has joined several multicast groups. Seeing five addresses on one interface is not a fault.

Traps

  • Saying IPv6 has broadcast. It does not; ff02::1 (all nodes) is the closest thing.
  • Treating ULA as the IPv6 RFC 1918 that must be NATed. That is not how IPv6 is meant to be run.
How did you do?Book 4.2 IP Version 6