::1200120012001fe80ff022001200120010db8db8db800db8db8db80000 11011011 10000001110011100000::00000000002000?2008f3c000005eff0?5effa91e00000fe000?fe004b7000011153102?5310d2c6:::::::2001:0db8:0001:0000:0000:0000:0000:00012001:db8:1:0:0:0:0:12001:db8:1::1fe80::200:5eff:fe00:5310ff02::22001:db8:1::/642001:db8:1:0:200:5eff:fe00:53102001:db8:1:0:8f3c:a91e:4b70:d2c62¹²⁸ ≈ 3.4 × 10³⁸ addresses2001:db8:1::/642001:db8:1::/64
Group blocks: the eight 16-bit groups of the address, four hex digits eachTeal: the network prefix (first 64 bits); blue: the interface ID (last 64 bits)Envelopes and the teal card: messages on the LAN; the card carries the advertised prefixAn IPv6 address is 128 bits, written as eight groups of four hex digits. Leading zeros drop and one :: replaces the longest run of zero groups, so 2001:0db8:0001:0000:0000:0000:0000:0001 becomes 2001:db8:1::1. On a LAN the first 64 bits are the prefix and the last 64 the interface ID. With SLAAC the router advertises the prefix 2001:db8:1::/64 and each laptop builds its own address from it, after first giving itself a link-local fe80:: address. Temporary addresses with random interface IDs protect privacy. All global addresses here are inside 2001:db8::/32, reserved for documentation (RFC 3849); the MAC addresses 00:00:5e:00:53:10 and 00:00:5e:00:53:20 come from the RFC 7042 documentation block. The temporary interface ID is an example of a random value.

Reading an address

  1. IPv4 addresses are 32 bits, about 4.3 billion in all, and they have run out. IPv6 addresses are 128 bits long. That gives about 3.4 × 10^38 addresses, enough for every device to have its own.

Parts and kinds

SLAAC

The address, worked out

IPv4  2^32  = 4,294,967,296
IPv6  2^128 = 340,282,366,920,938,463,463,374,607,431,768,211,456
      ≈ 3.4 × 10^38
example: the router's address 2001:0db8:0001:0000:0000:0000:0000:0001

All global addresses here are inside 2001:db8::/32, reserved for documentation (RFC 3849); the MAC addresses 00:00:5e:00:53:10 and 00:00:5e:00:53:20 come from the RFC 7042 documentation block. The temporary interface ID is an example of a random value. Building the interface ID from the MAC (modified EUI-64, RFC 4291 Appendix A) is the classic method; many systems now use a stable random-looking ID instead (RFC 7217, recommended by RFC 8064).