WikiNano.
IPv6 Workbench

An interactive lab for the 128-bit internet

IPv6 Workbench

Learn IPv6 by taking it apart. Type addresses and watch them decode, carve up subnets, assemble packet headers, and run Neighbor Discovery frame by frame on a simulated LAN. Every tool on this page runs in your browser.

Global routing prefix · 48 bits Subnet ID · 16 bits Interface ID · 64 bits
Addresses in IPv6
2128340,282,366,920,938,463,463,374,607,431,768,211,456
Addresses in one LAN (/64)
18.4 quintillion4.3 billion times the entire IPv4 internet, in a single subnet.
Google users on IPv6
50.1%on 28 March 2026, the first day above half.
Base header
40 bytesAlways the same size. No header checksum, and no broadcast anywhere in the protocol.
§01

Why IPv6 exists

IPv4 has 4,294,967,296 addresses. The regional registries handed out their last free blocks between 2011 and 2020.

An IPv4 address is 32 bits long, so there are 232 of them, about 4.3 billion. Large slices were never usable on the public internet (private ranges, multicast, reserved space), and most people now carry several connected devices. The free pool ran out region by region.

The stopgap was NAT: many devices share one public address, and many carriers add a second layer called carrier-grade NAT. It works for browsing, but it breaks end-to-end reachability, complicates peer-to-peer apps, calls and games, and makes it hard to trace abuse to one customer.

IPv6 was designed in the mid-1990s (RFC 1883 in 1995, RFC 2460 in 1998) and became a full Internet Standard as RFC 8200 in 2017. Its addresses are 128 bits, so every LAN gets 264 addresses. It also simplified the packet header, made autoconfiguration standard, and replaced broadcast with multicast.

How big is 128 bits?

Bars use a log scale: bar length is the number of bits (log₂ of the count), so each extra bit doubles the count. Select a bar for the exact number.

Thirty years: IPv4 runs out, IPv6 arrives

IPv4 free pool runs outIPv6 milestone

IPv4 and IPv6 side by side

TopicIPv4IPv6
Address size32 bits, about 4.3 billion128 bits, about 3.4 × 1038
Written as192.0.2.12001:db8::1
Header20–60 bytes, variable, with options40 bytes fixed; options move to extension headers
Header checksumYes, recomputed at every hopNone; link and transport layers check integrity
FragmentationRouters and hostsOnly the sending host; routers send Packet Too Big
Minimum link MTU68 bytes (hosts must accept 576)1,280 bytes
Finding a neighbor's MACARP, by broadcastNeighbor Discovery, by ICMPv6 multicast
BroadcastYesNone; multicast groups such as ff02::1 instead
Automatic addressingDHCPSLAAC, DHCPv6, or both
Addresses per interfaceUsually oneSeveral: link-local, global, temporary, sometimes ULA
Private addressingRFC 1918 ranges plus NATUnique local fd00::/8; NAT not needed
DNSA records, reverse in in-addr.arpaAAAA records, reverse in ip6.arpa
§02

Reading and writing addresses

Eight groups of four hex digits, plus two shortcuts that make them human-sized.

An address is 128 bits. We write it as eight 16-bit groups, often called hextets, in hexadecimal, separated by colons: 2001:0db8:0000:0000:0000:ff00:0042:8329.

  1. Drop leading zeros inside any group: 0db8 becomes db8, 0042 becomes 42, 0000 becomes 0.
  2. Replace one run of consecutive all-zero groups with ::. Only once per address, or nobody could tell how many groups each :: hides.

RFC 5952 defines one canonical form so that logs and databases agree: lowercase, as short as possible, :: on the longest run of zero groups (the leftmost one if two runs tie), and never :: for a single zero group.

A /n suffix is the prefix length: how many leading bits name the network. A normal LAN is a /64, leaving 64 bits for the interface ID. In URLs, put the address in brackets so its colons aren't read as a port: http://[2001:db8::1]:8080/. Link-local addresses need a zone ID naming the interface: fe80::1%eth0.

Sandbox · Address explorer

Compression, step by step

Follows whatever address is in the explorer.

Practice drill

Write the canonical short form
Streak: 0
§03

Address types and scopes

Every address has a type (unicast, multicast or anycast) and a scope (how far it may travel). The first few bits tell you which.

  • Unicast goes to one interface. The everyday kinds are global unicast (2000::/3, routable on the internet), link-local (fe80::/10, on every interface, never forwarded by routers) and unique local (fc00::/7, for private networks; in practice fd00::/8 plus a random 40-bit Global ID).
  • Multicast (ff00::/8) goes to every member of a group. IPv6 has no broadcast: jobs that used broadcast in IPv4 now use groups such as ff02::1 (all nodes on the link) and ff02::2 (all routers).
  • Anycast is one unicast address configured on several interfaces; routing delivers each packet to the nearest one. DNS root servers and CDNs use it, and every subnet has a Subnet-Router anycast address: its prefix with an all-zero interface ID.

Global addresses are valid everywhere. Link-local addresses are valid only on one link, which is why they need a zone ID. Multicast addresses carry an explicit 4-bit scope field.

Map of the whole address space

Global unicast Unique local Link-local Multicast Special-use Reserved, unassigned

Who receives the packet?

Multicast address builder

Flags (0RPT)
Well-known groups

Special-purpose prefixes

Select a row to open its example in the explorer
§04

Subnetting without the arithmetic pain

A site usually gets a /48 or a /56, and every LAN gets a /64. Subnetting is mostly counting in hex.

Registries allocate large blocks to ISPs, commonly a /32 or bigger. ISPs assign each customer a prefix: often a /48 for a business and a /56 for a home, sometimes only a /64, which allows just one LAN. Each LAN uses a /64 so that SLAAC can work.

The bits between the site prefix and bit 64 are the subnet ID. A /48 leaves 16 of them, so 65,536 LANs. A /56 leaves 8, so 256 LANs. Stick to multiples of 4 bits (nibble boundaries): then every subnet ID is whole hex digits, and reverse DNS delegation lines up with ip6.arpa labels.

You never squeeze hosts into a subnet. Router-to-router links often use /127 (RFC 6164) and loopbacks /128, but a LAN is always a /64.

Sandbox · Subnet planner

#SubnetFirst addressLast address

How the sizes nest

/32Typical ISP allocation · holds 65,536 × /48 or 16,777,216 × /56
/48Typical business site · holds 65,536 × /64
/56Typical home · holds 256 × /64
/64One LAN · 18,446,744,073,709,551,616 addresses
/128One address
Each box fits many times inside the one around it. The prefix sizes are common practice (for example RIPE-690), not rules.
§05

Interface IDs, EUI-64 and privacy

The last 64 bits identify the interface. How a device picks them decides whether websites can follow it from network to network.

The original method, modified EUI-64, builds the interface ID from the MAC address: split the 48-bit MAC in half, insert ff:fe, and flip the universal/local bit. It's deterministic, so a laptop would carry the same interface ID into every network it joins, which is a ready-made tracking handle.

Current systems use stable, opaque IDs (RFC 7217, recommended by RFC 8064): a hash of the prefix, the interface and a device secret. The result stays the same on one network and differs on every other. For outgoing connections they also add temporary addresses (RFC 8981) with random IDs that are replaced regularly, typically daily.

Every unicast address also gets a solicited-node multicast group, ff02::1:ffXX:XXXX, built from its last 24 bits. Neighbor Discovery sends its questions there, so almost no other host has to look at them.

Sandbox · Interface ID generator

Network the laptop joins
What a website sees as the laptop moves

§07

ICMPv6 and Neighbor Discovery

ICMPv6 does far more than ping. Neighbor Discovery replaces ARP, finds routers, and checks that nobody else already uses an address.

ICMPv6 (Next Header 58) carries error messages (types 1–127) and informational messages (128–255). IPv6 cannot work without it, so it must never be blocked wholesale.

Neighbor Discovery (RFC 4861) uses five ICMPv6 messages: Router Solicitation (133), Router Advertisement (134), Neighbor Solicitation (135), Neighbor Advertisement (136) and Redirect (137). They're sent with Hop Limit 255, and receivers drop any that arrive with less, which proves the sender is on the same link.

  • Address resolution: to learn a neighbor's MAC, a host sends a Neighbor Solicitation to the neighbor's solicited-node group, and the target replies with a Neighbor Advertisement.
  • Neighbor Unreachability Detection keeps checking that neighbors are still there; cache entries move through REACHABLE, STALE, DELAY and PROBE.
  • Duplicate Address Detection: before using any address, a host asks for it from the unspecified address ::. If anyone answers, the address is taken.

Simulation · One LAN, frame by frame

Neighbor Solicitation / Advertisement Router Solicitation / Advertisement / Redirect Data (ping) IPv4 ARP
Inspect a device
Addresses
Neighbor cache
Default routers · groups joined
Packet capture
No.TimeSourceDestinationProtocolInfo
Select a captured packet to see its layers.

ICMPv6 message types you'll meet

TypeMessageUsed for
1Destination UnreachableNo route, address unreachable, port unreachable, administratively prohibited
2Packet Too BigPath MTU Discovery. Must never be filtered.
3Time ExceededHop Limit reached zero (traceroute), or reassembly timed out
4Parameter ProblemBad header field, unknown Next Header or option
128 / 129Echo Request / Replyping
130 / 131 / 132 / 143Multicast Listener Query / Report / Done / MLDv2 ReportJoining multicast groups; switches snoop them
133 / 134Router Solicitation / AdvertisementFinding routers, prefixes, MTU and DNS (SLAAC)
135 / 136Neighbor Solicitation / AdvertisementAddress resolution, unreachability detection, DAD
137RedirectA router pointing a host to a better first hop
§08

Getting an address: SLAAC and DHCPv6

Routers advertise prefixes and hosts build their own addresses. DHCPv6 is optional, and the Router Advertisement decides who uses it.

SLAAC (stateless address autoconfiguration, RFC 4862): the router's advertisement carries a /64 prefix with the A flag set, and each host appends its own interface ID. No server keeps a record. DNS servers can travel in the advertisement itself (the RDNSS option, RFC 8106).

DHCPv6 (RFC 8415) can hand out addresses like DHCP does for IPv4, and identifies clients by a DUID rather than a MAC. It never provides a default gateway: that always comes from Router Advertisements. Two RA flags steer hosts: M (managed) says addresses are available from DHCPv6, and O (other) says other settings, such as DNS, are.

Android doesn't implement stateful DHCPv6 address assignment, so a network that turns SLAAC off leaves Android devices with no global address. Home routers get their LAN prefixes through DHCPv6 prefix delegation: the ISP delegates, say, a /56, and the router numbers each LAN as a /64 inside it.

Sandbox · Router Advertisement flags

DHCPv6 conversations

Select a message to read its options.
§09

Routing and forwarding

Routers pick the most specific matching route, count the hop limit down, and never fragment.

  • Longest prefix match: a destination can match many routes, and the one with the longest prefix wins. ::/0 is the default route.
  • Link-local next hops are normal in IPv6. Routing protocols such as OSPFv3 and RIPng exchange routes over link-local addresses, so a routing table is full of fe80::… next hops.
  • Hop Limit: every router subtracts one. At zero the packet is dropped and ICMPv6 Time Exceeded goes back to the source, which is exactly how traceroute works.
  • Path MTU Discovery: when a packet is too big for a link, the router drops it and returns Packet Too Big with the link's MTU, and the source sends smaller packets. If a firewall blocks those messages, big transfers silently hang.

The routing protocols are the familiar ones, extended: OSPFv3 (RFC 5340, multicast ff02::5 and ff02::6), IS-IS, BGP with multiprotocol extensions, RIPng (UDP 521, ff02::9) and EIGRP for IPv6 (ff02::a).

Sandbox · Longest prefix match

RouteNext hopInterfaceBits matched
Add your own route

Simulation · Hop limit and path MTU

Pick an experiment. The link from R2 to R3 is a tunnel with a 1,400-byte MTU.

    
§10

Living with IPv4

Most networks run both protocols. Where they can't, tunnels and translators bridge the gap.

Dual stack is the default: devices run IPv4 and IPv6 side by side. Clients prefer IPv6 and fall back quickly with Happy Eyeballs (RFC 8305), so a broken IPv6 path costs a quarter of a second instead of a long timeout.

Tunnels carry one protocol inside the other: IPv6 in IPv4 (6in4, IP protocol 41; 6rd) or IPv4 in IPv6 (DS-Lite). Translation lets IPv6-only clients reach IPv4-only servers: DNS64 makes up AAAA records from A records using the prefix 64:ff9b::/96, and NAT64 translates the packets. 464XLAT adds a small translator on the device (CLAT), so IPv4-only apps keep working on IPv6-only mobile networks.

More networks now run IPv6-mostly: devices that cope without IPv4 switch it off when the DHCP server offers option 108 (RFC 8925).

Simulation · Happy Eyeballs race

30 ms
25 ms
60 ms
40 ms

Simulation · Tunnels and translators

Headers on this segment, outermost first

Sandbox · IPv4-embedded IPv6 addresses (RFC 6052)

Reverse it: pull the IPv4 address out of an IPv6 address

§11

Adoption today

On 28 March 2026, for the first time, more than half of the users reaching Google did so over IPv6.

“IPv6 adoption” depends on who is measuring. Google counts users who reach Google over IPv6. APNIC Labs measures how many users are IPv6-capable, using a worldwide ad campaign. Cloudflare counts the HTTP requests that arrive at its network over IPv6. Weekends score higher than weekdays, because home and mobile networks have better IPv6 than many offices.

Countries differ enormously. Large operators that switched early, often with a national push, put France and India far ahead, while other countries remain in single digits. The routing table keeps growing too: about 241,800 IPv6 prefixes in January 2026, against roughly 1.05 million for IPv4.

Share of users reaching Google over IPv6

Published milestones from Google's IPv6 statistics, as reported by the Internet Society, CircleID and The Register. Many are weekend peaks; weekday values run a few points lower.

Same month, different rulers

Global IPv6 share by measurement, April 2026. Google's figure is its first day above 50% (28 March).

Adoption varies by country

Internet Society Pulse, April 2026. The line marks Pulse's global average across its sources.

Routes in the global BGP table

IPv6 prefixesIPv4 prefixes

January of each year, from Geoff Huston's annual BGP report. For scale: about 300 IPv6 prefixes in 2002 and 9,500 at World IPv6 Launch in 2012 (RIPE Labs).

§12

Security

IPv6 is neither more nor less secure than IPv4. It is different: vastly more addresses, more reliance on ICMP, and local-link features that can be spoofed.

  • No NAT doesn't mean no firewall. A stateful firewall that drops unsolicited inbound traffic gives the protection people credited to home NAT, and you can still open specific services on purpose.
  • Don't block all ICMPv6. RFC 4890 lists what must pass: at least Packet Too Big, Destination Unreachable, Time Exceeded and Parameter Problem, and Neighbor Discovery must work on the link.
  • Rogue Router Advertisements are the classic LAN problem, often by accident when a device starts acting as a router. Switches can enforce RA Guard (RFC 6105) and DHCPv6 Guard.
  • Scanning a /64 blindly is hopeless, but attackers guess patterns instead: ::1, low numbers, EUI-64 IDs from known vendors, names from DNS. Don't treat an obscure address as access control.

Sandbox · What if you block this ICMPv6 message?

How long does a blind scan take?

1,000,000
One IPv6 /64 subnet

Where attackers look instead

Real IPv6 reconnaissance narrows the space before sending a single probe:

  • Low-byte addresses such as ::1, ::10 and ::53 that admins type by hand.
  • EUI-64 IDs: the ff:fe pattern plus a vendor's MAC prefix leaves only 24 unknown bits.
  • Embedded IPv4 addresses like ::192.0.2.10 and service ports written as hex.
  • DNS zones, reverse ip6.arpa walking, certificate transparency logs and server logs.

Defense: random or RFC 7217 IDs for hosts, deliberate naming for servers, and firewalls that don't depend on secrecy.

Threats and fixes

§13

Practice terminal

Real commands on a simulated network. Try Linux, Windows and a Cisco router side by side.

Tasks

    Click a command to paste it. ↑ and ↓ recall history; type help for everything this shell knows.

    §14

    Check yourself

    Twenty questions covering everything above. Your progress stays in this browser.

    IPv6 quiz

    §15

    Reference

    The numbers and names you'll look up again.

    Well-known multicast groups

    AddressGroup
    ff02::1All nodes on the link
    ff02::2All routers on the link
    ff02::5 / ff02::6OSPFv3 all SPF routers / designated routers
    ff02::9RIPng routers
    ff02::aEIGRP routers
    ff02::dPIM routers
    ff02::16MLDv2-capable routers (where MLDv2 reports go)
    ff02::fbMulticast DNS (mDNS)
    ff02::1:2All DHCPv6 relay agents and servers
    ff02::1:3LLMNR
    ff05::1:3All DHCPv6 servers (site scope)
    ff0x::101NTP, in any scope x
    ff02::1:ff00:0/104Solicited-node groups: one per last-24-bits value

    Next Header values

    ValueProtocol or header
    0Hop-by-Hop Options
    4IPv4 (encapsulated, e.g. DS-Lite)
    6TCP
    17UDP
    41IPv6 (encapsulated, e.g. 6in4)
    43Routing
    44Fragment
    50 / 51ESP / Authentication Header
    58ICMPv6
    59No Next Header
    60Destination Options
    89OSPF (OSPFv3)

    RFCs worth knowing

    RFCTopic
    8200IPv6 specification (Internet Standard 86)
    4291Addressing architecture
    5952Canonical text representation
    4443ICMPv6
    4861 / 4862Neighbor Discovery / SLAAC
    8415DHCPv6
    8106DNS options in Router Advertisements
    7217 / 8981Stable opaque and temporary interface IDs
    4193Unique local addresses
    6052 / 6146 / 6147IPv4-embedded addresses, NAT64, DNS64
    6877 / 6333464XLAT / DS-Lite
    8305Happy Eyeballs v2
    8201Path MTU Discovery for IPv6
    4890ICMPv6 filtering recommendations
    6164/127 on point-to-point links
    3849 / 9637Documentation prefixes

    Glossary

    About IPv6 Workbench

    Decode IPv6 addresses as you type, carve up subnets, build packet headers and learn Neighbor Discovery in an interactive IPv6 lab.

    Topic: Networking · Format: interactive simulation · Free, no sign-up · Updated 2026-10-15 · By Prince Vincent, WikiNano · Last reviewed 2026-10-15.

    Inside this page

    Common questions

    Why is IPv6 needed?
    IPv4 has about 4.3 billion addresses, which have run short. IPv6 uses 128 bits, giving a practically unlimited number.
    What does an IPv6 address look like?
    Eight groups of four hexadecimal digits separated by colons, such as 2001:db8::1, where :: replaces a run of zeros.
    Can IPv4 and IPv6 work together?
    Yes. Most networks run both, called dual stack, while the world moves over gradually.

    Sources and further reading

    Keep exploring