IPv6 Basics
See why IPv6 exists, read and shorten 128-bit hexadecimal addresses, recognize link-local and global addresses, and understand dual stack.
Welcome back!
Step 1 of 12Learn
An address space you can't run out of
IPv4 offers about 4.3 billion addresses, fewer than one per person on Earth. IPv6, standardized in the late 1990s, uses 128-bit addresses, which gives 2128, roughly 3.4 × 1038 addresses. That number is so large that every device could have its own globally unique address with plenty left for the future, removing the need for NAT as a workaround.
IPv6 is not a distant plan. Major mobile carriers run their networks mostly on IPv6, and a large share of traffic to big websites, often around 40–50% in many countries, already arrives over IPv6. Your phone is very likely using it right now.
Besides size, IPv6 cleaned up some design decisions:
- Automatic configuration. Devices can create their own addresses from the network prefix the router announces (SLAAC), with or without DHCPv6.
- No broadcast. IPv6 uses multicast instead, so devices aren't interrupted by traffic meant for others. ARP is replaced by Neighbor Discovery.
- Simpler header for routers to process, and no fragmentation by routers along the path.
What does not change: TCP, UDP, ports, DNS and applications work the same way on top of it. The loopback address is ::1, the IPv6 equivalent of 127.0.0.1.
Step 2 of 12Diagram
How big is the IPv6 address space?
Tap a shape with to see more.
- All IPv4 addresses
About 4.3 billion.
- People on Earth
About 8 billion: more people than IPv4 addresses.
- IPv6 /64 subnets
264 standard-size networks.
- All IPv6 addresses
2128, about 340 undecillion.
Step 3 of 12Learn
Reading and shortening IPv6 addresses
An IPv6 address is written as eight groups of four hexadecimal digits (0–9 and a–f), separated by colons:
2001:0db8:0000:0000:0000:ff00:0042:8329Two rules shorten it:
- Drop leading zeros in any group:
0db8becomesdb8,0042becomes42,0000becomes0. - Replace one run of consecutive all-zero groups with
::. This can be done only once in an address, otherwise you couldn't tell how many zeros each::stands for.
Applying both:
2001:db8:0:0:0:ff00:42:8329 (rule 1)
2001:db8::ff00:42:8329 (rule 2)To expand an address, reverse the process: count the groups present and let :: fill in enough zero groups to reach eight.
IPv6 uses the same prefix notation as CIDR. A typical address is split into a 64-bit network prefix and a 64-bit interface identifier: 2001:db8:abcd:12::/64 is one subnet. Providers commonly hand a home a /56 or /48, which contains 256 or 65,536 of those /64 subnets. (2001:db8::/32 is reserved for documentation, which is why it appears in every example.)
Step 4 of 12Practice · Spot the mistake
Which of these IPv6 addresses are written incorrectly? Tap the two invalid ones.
Step 5 of 12Practice · Fill in the blanks
Fill in the blanks
The fully shortened form of 2001:0db8:0000:0000:0000:0000:0000:0010 is ``.
Step 6 of 12Diagram
Shortening an IPv6 address in two moves
Tap a shape with to see more.
- Full form
2001:0db8:0000:0000:0000:ff00:0042:8329- Drop leading zeros
2001:db8:0:0:0:ff00:42:8329— each group keeps at least one digit.- Collapse one zero run to ::
2001:db8::ff00:42:8329— only once per address, or it becomes ambiguous.
Step 7 of 12Tap to reveal
IPv6 address types you will see
Global unicast (2000::/3)
Publicly routable addresses, usually starting with 2 or 3, such as 2001:… or 2600:…. This is the IPv6 equivalent of a public IPv4 address, and every device can have one.
Link-local (fe80::/10)
Every IPv6 interface automatically has an address starting with fe80::. It works only on the local link, is used for neighbor discovery and router communication, and is never routed.
Unique local (fc00::/7, usually fd…)
Private addresses for internal use, similar in spirit to 10.x.x.x in IPv4, but rarely needed because global addresses are plentiful.
Loopback (::1)
The address of the device itself, like 127.0.0.1.
Multicast (ff00::/8)
Addresses that reach a group of devices; they replace IPv4 broadcast.
Step 8 of 12Practice · Match the pairs
Match each IPv6 address to its type.
Tap an answer, then tap the place where it belongs (or drag it there).
- ::1
- fe80::a1b2:c3ff:fed4:e5f6
- 2607:f8b0:4005:80a::200e
- ff02::1
- fd12:3456:789a::1
Step 9 of 12Note
Step 10 of 12Practice · True or false
Because IPv6 addresses are so plentiful, IPv6 networks use subnets of /64 for ordinary local networks.
Step 11 of 12Practice · Choose one
How many hexadecimal groups does a full, unshortened IPv6 address contain?
Step 12 of 12Practice · Choose one
Why does IPv6 not need NAT the way IPv4 does?
Lesson complete!