How to Read an IPv6 Address: Structure, Shortening and Types
An IPv6 address like 2001:0db8:85a3:0000:0000:8a2e:0370:7334 looks like line noise the first time. But it has clean internal structure, and the shortening rules that produce forms like 2001:db8::1 take two minutes to learn.
The anatomy
An IPv6 address is 128 bits, written as eight groups of four hex digits. For a typical global address, the halves have meaning:
- First 64 bits โ the network: a global routing prefix your ISP assigns, plus a subnet ID. Your whole home usually gets a /56 or /64 prefix.
- Last 64 bits โ the interface ID: identifies the specific device within that network, often self-generated.
The shortening rules
- Drop leading zeros in each group:
0db8โdb8,0000โ0. - Compress one run of consecutive zero groups to
::โ only once per address, so it stays unambiguous.
So 2001:0db8:0000:0000:0000:0000:0000:0001 becomes 2001:db8::1, and the loopback (IPv6's localhost) is simply ::1.
Recognising address types at a glance
| Starts with | Type | Meaning |
|---|---|---|
2xxx/3xxx | Global unicast | Public, internet-routable |
fe80:: | Link-local | Auto-generated, local segment only โ every interface has one (IPv6's cousin of 169.254, but always present by design) |
fc00::/fd00:: | Unique local | Private, like 192.168.x.x |
ff00:: | Multicast | One-to-many delivery |
::1 | Loopback | This machine |
Privacy addresses: why your IPv6 keeps changing
Early IPv6 embedded the device's MAC address in the interface ID โ a permanent, globally trackable serial number in every packet. Modern systems instead use privacy extensions: randomised interface IDs rotated regularly (daily or per connection). That's why your device shows several IPv6 addresses at once โ a stable one for inbound purposes and temporary ones actually used for outgoing traffic. Check which address the world currently sees on our homepage.
One practical upshot of IPv6: with no NAT, each device has a globally unique address โ so the network firewall, not address-sharing, is what keeps unsolicited traffic out.
Frequently asked questions
Why do I see %eth0 or %15 after an IPv6 address?
That's a zone index attached to link-local (fe80::) addresses โ it tells the OS which network interface the address applies to, since every interface has an fe80 address.
Is an IPv6 address more traceable than IPv4?
Per-device uniqueness could make it more traceable, but privacy extensions rotate the visible address regularly, and your prefix still only locates you like an IPv4 address would.