IPv6 Address Format
IPv6 addresses are 128 bits long, written as eight groups of four hexadecimal digits separated by colons: 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Two abbreviation rules: (1) Leading zeros in each group can be omitted (0db8 → db8, 0000 → 0). (2) One consecutive sequence of all-zero groups can be replaced with :: (double colon). Example: 2001:db8::8a2e:370:7334. The :: can appear only once in an address.
IPv6 uses /prefix notation similar to IPv4 CIDR. The default subnet prefix for hosts is /64 — the first 64 bits are the network prefix, the last 64 bits are the interface identifier. /48 is typically allocated to organizations by ISPs. /128 = a single host address (like IPv4 /32).
IPv6 Address Types
Global unicast addresses (GUA): globally routable, equivalent to public IPv4 addresses. Begin with 2000::/3 (in practice, mostly 2001: and 2002: ranges). Assigned by ISPs.
Link-local addresses: automatically assigned to every IPv6 interface, begin with FE80::/10. Used for communication on a single link (LAN segment) — never routed. Equivalent to APIPA in IPv4 (169.254.x.x). Every IPv6 interface has a link-local address even without any configuration.
Unique local addresses (ULA): private IPv6 addresses, begin with FC00::/7 (FD00::/8 in practice). Equivalent to RFC 1918 private IPv4 ranges — not routable on the internet. Used within organizations.
Multicast addresses begin with FF00::/8. IPv6 uses multicast to replace IPv4 broadcast — there is no broadcast in IPv6. All nodes multicast: FF02::1. All routers multicast: FF02::2. Solicited-node multicast: FF02::1:FFxx:xxxx — used by NDP (Neighbor Discovery Protocol) for address resolution.
Anycast addresses are syntactically identical to unicast but assigned to multiple interfaces — packets are delivered to the nearest one (by routing metric). Used for services like DNS root servers and CDN anycast routing.
Loopback: ::1 (equivalent to 127.0.0.1 in IPv4). Unspecified address: :: (equivalent to 0.0.0.0).
IPv6 vs IPv4 Key Differences
No broadcast: IPv6 eliminates broadcast, using multicast and anycast instead. No ARP: IPv6 replaces ARP with NDP (Neighbor Discovery Protocol) using ICMPv6 messages — Neighbor Solicitation (NS) and Neighbor Advertisement (NA) perform the same function as ARP. No DHCP required: IPv6 supports SLAAC (Stateless Address Autoconfiguration) — hosts can automatically generate their own global unicast address from the network prefix (RA — Router Advertisement) and their MAC address (EUI-64). DHCPv6 is also available.
IPv6 headers are simplified compared to IPv4 — fixed 40-byte header with no checksum (moved to transport layer) and no fragmentation in transit (handled only at the source). Extension headers provide optional functionality.
IPv4/IPv6 coexistence mechanisms: Dual stack — a device runs both IPv4 and IPv6 simultaneously (most modern devices). Tunneling — IPv6 packets encapsulated within IPv4 (6to4, Teredo, ISATAP) to cross IPv4 networks. NAT64 — translates between IPv6 and IPv4 for communication between IPv6-only and IPv4-only systems.