IPv6 /64 subnet: one LAN with 2^64 addresses
By TechCompare · Updated · How we check
An IPv6 /64 subnet holds 18,446,744,073,709,551,616 addresses, which is the common size for one LAN. Azure requires IPv6 subnets to be exactly /64, and RFC 7421 says SLAAC assumes a 64-bit network boundary.
A /64 is the common block for one LAN. An IPv6 /64 subnet holds 18,446,744,073,709,551,616 addresses, which is 2^64. The address count isn't what limits a LAN. The 64-bit boundary matters more, and SLAAC assumes it.
How this is calculated
The first 64 bits of an address are the prefix, which says which network the address belongs to. The last 64 bits are the interface ID, the part that picks out one device on that network. RFC 4291 says all global unicast addresses other than those starting with binary 000 have a 64-bit interface ID field. RFC 7421 says most link-layer mappings make SLAAC assume a 64-bit network boundary, and that longer prefixes can't use SLAAC-configured addresses. SLAAC is stateless address autoconfiguration, the way a device builds its own address from the prefix.
Verdict
Use a /64 for each LAN, and plan with the number of /64s instead of hosts. RIPE-690 says it's not possible to assign less than a /64 to each LAN port/segment/subnet/VLAN due to IPv6 protocol requirements. RFC 4291 says there are no broadcast addresses in IPv6, so nothing comes off the count, and the last address is simply the last address of the block. The examples use 2001:db8::/32, the documentation prefix RFC 3849 reserves. Inside that prefix, this /64 runs from 2001:db8:: to 2001:db8::ffff:ffff:ffff:ffff.
More Subnet scenarios
Related guides
Frequently asked questions
How many hosts fit in a /64?
Why use a /64 for every LAN?
Can I use a /80 or /112 on a LAN?
What's the difference between a /64 and a /56?
Related tools
DNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolDisplay Bandwidth Calculator
Check display bandwidth for HDMI, DisplayPort, USB-C, Thunderbolt, and USB4.
Use toolData Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool