Skip to content

Lesson 1 of 9 · 24m

The IPv6 Addressing Mental Model

Read IPv6 addresses, prefixes, scopes, and interface behavior the way an operator does before designing anything.

The most dangerous IPv6 deployment mistake is treating it like IPv4 with longer addresses. It is a different network layer with different neighbor discovery, different address lifetimes, multiple normal addresses per interface, and a much stronger separation between link-local and globally reachable behavior. Once that clicks, the hexadecimal stops being the hard part.

Read addresses as structure, not noise

IPv6 uses 128 bits written as eight groups of hexadecimal digits separated by colons. Leading zeros in a group can be omitted, and one contiguous run of zero groups can be compressed with :::

2001:0db8:0010:0042:0000:0000:0000:00ff
2001:db8:10:42::ff

The :: compression can appear once. If it could appear twice, the address would be ambiguous. When you read a prefix such as 2001:db8:10::/48, the number after the slash is the fixed network portion. Everything after it is yours to allocate.

Prefix lengths are architectural boundaries

The common sizes mean different things operationally:

/32   typical large provider allocation
/40   large organization or regional assignment
/48   one site, customer, or organizational boundary
/56   small site or home delegation
/64   one layer-2 network segment

Almost all normal LAN mechanisms assume /64 per segment. Stateless autoconfiguration depends on it, many firewall and monitoring assumptions are built around it, and splitting a LAN into something smaller often creates pain without gaining useful isolation.

One interface normally has several addresses

Do not panic when a host has more than one IPv6 address:

ip -6 addr show dev eth0

A healthy interface may show a link-local fe80::/10 address, one stable global address, temporary privacy addresses, and perhaps an address learned through DHCPv6. This is not duplication in the IPv4 sense. Applications choose source addresses using policy rules, and the operating system intentionally separates stable inbound identity from temporary outbound identity.

Scope is not decoration

An IPv6 address can be link-local, unique-local, or globally routable. The same textual address family does not imply the same reachability:

fe80::1          link-local, only meaningful on one link
fc00::/7         unique local address space, private routing scope
2000::/3         global unicast space in normal public use
ff02::1          all nodes on the local link

Link-local traffic is not routable. That is why commands sometimes need an interface zone:

ping -6 fe80::1%eth0

If you forget the scope, the kernel cannot know which local link you meant.

Field notes

  • ::1 is loopback, not an empty address or a wildcard listener representation.
  • The unspecified address :: can mean "listen on all IPv6 interfaces" when configuring a service, but it is not a valid host destination.
  • Documentation prefixes 2001:db8::/32 are for examples; never deploy them as real production allocations.
  • IPv6 usually enables itself before you deploy it. If you are not controlling link-local and router-advertisement behavior, someone else already controls part of your network.

Was this lesson helpful?

Sign in to rate