Skip to content
Tape and Square

N-01 · Subnet · IPv6 /64

/64 IPv6 subnet

A /64 IPv6 prefix fixes the first 64 of 128 bits and leaves 64. Its size, how it splits, where it sits among the usual allocation sizes and the RFC rules that apply to it.

Short answer

Addresses
2^6418,446,744,073,709,551,616
/64 networks
1This is one LAN
Fit in one /48
65,536

IPv6 has no broadcast address and all-zeros and all-ones are ordinary values (RFC 4291 §2), so all 2^64 addresses count. A /64 is the standard size for one network: interface identifiers are 64 bits and SLAAC works only on a /64.

What a /64 holds

Longer prefixes inside one /64. Each extra bit halves the block.

PrefixIn one /64
/8065,536 (2^16)
/964,294,967,296 (2^32)
/112281,474,976,710,656 (2^48)
/12072,057,594,037,927,936 (2^56)
/1264,611,686,018,427,387,904 (2^62)
/1279,223,372,036,854,775,808 (2^63)
/12818,446,744,073,709,551,616 (2^64)

Where a /64 sits

How many /64 blocks the larger sizes hold.

Block/64 blocks in it
::/0, all of IPv618,446,744,073,709,551,616 (2^64)
2000::/3, global unicast2,305,843,009,213,693,952 (2^61)
2001:db8::/324,294,967,296 (2^32)
2001:db8:abcd::/4865,536 (2^16)
2001:db8:abcd:3400::/56256

IANA assigns unicast space only from 2000::/3, which holds 2,305,843,009,213,693,952 (2^61) /64 blocks; the example blocks in the table are the ones around 2001:db8:abcd:3412:1e:5:a:7, all inside the documentation prefix 2001:db8::/32 (RFC 3849).

Rules for a /64

Interface identifiers are 64 bits for every unicast address that doesn't start with binary 000 (RFC 4291 §2.5.1, as reworded by RFC 7136). Stateless autoconfiguration ignores a prefix whose length plus the interface identifier isn't 128 bits (RFC 4862 §5.5.3), so SLAAC needs a /64. RFC 5375 recommends /64 “also for links connecting only routers”.

RFC 3177 gave a /64 “when it is known that one and only one subnet is needed”; RIPE-690 mentions a /64 per connection for mobile phones. The first address of the /64 is its Subnet-Router anycast address, and RFC 2526 reserves the highest 128 interface identifiers for subnet anycast.

For point-to-point router links, RFC 6164 makes /127 a size routers must support, and RIPE-690 suggests reserving a /64 per link and using one /127 from it. When links are numbered from one /64, RFC 6164 says not to use the all-zero low 64 bits or the top 128 values (ffff:ffff:ffff:ff80 up, per erratum 3422).

Special-purpose /64 blocks

Blocks of exactly this size in the IANA IPv6 Special-Purpose Address Space registry.

BlockUse
100::/64Discard-Only Address Block
100:0:0:1::/64Dummy IPv6 Prefix

Check an address

Pre-filled with 2001:db8:abcd:3412:1e:5:a:7/64. Change the address or the prefix.

/64

Also accepts 192.168.1.130 255.255.255.192, 192.168.1.0 60 hosts or IPv6 like 2001:db8::/48.

Result

2001:db8:abcd:3412::/64

18,446,744,073,709,551,616 (2^64) addresses

First address
2001:db8:abcd:3412::
Last address
2001:db8:abcd:3412:ffff:ffff:ffff:ffff
Prefix length
/64
Broadcast
None in IPv6

A /64 is the standard size for one network: interface IDs are 64 bits, and SLAAC address autoconfiguration needs exactly /64. IPv6 has no broadcast address; the first address is the subnet-router anycast address (RFC 4291).

DOCUMENTATION

Inside 2001:db8::/32, reserved for documentation and examples (RFC 3849). Not routed.

Hex view

Address
2001:0db8:abcd:3412:001e:0005:000a:0007
Network
2001:0db8:abcd:3412:0000:0000:0000:0000
Last
2001:0db8:abcd:3412:ffff:ffff:ffff:ffff

Each hex digit is 4 bits. Bold digits are fixed for the network; orange digits number the interfaces.

2001:db8:abcd::/48 split into /64 · 65,536 blocks

  1. … 13,327 before
  2. 2001:db8:abcd:3412::/64◂
  3. … 52,201 more

Worked example

Take 2001:db8:abcd:3412:1e:5:a:7/64, written out in full as 2001:0db8:abcd:3412:001e:0005:000a:0007. Each hex digit is 4 bits, so a /64 keeps the first 16 digits (4 full groups) and zeros the other 16. The network is 2001:db8:abcd:3412::/64; setting those digits to f gives the last address, 2001:db8:abcd:3412:ffff:ffff:ffff:ffff.

The block holds 18,446,744,073,709,551,616 (2^64) addresses. Its first address, 2001:db8:abcd:3412::, is the Subnet-Router anycast address for the prefix (RFC 4291 §2.6.1).

2001:db8:abcd:3412::/64 splits into 9,223,372,036,854,775,808 (2^63) /127 blocks. Those are the link prefixes RFC 6164 has in mind. The first contains the all-zero interface identifier, the Subnet-Router anycast address, which RFC 6164 says not to assign when links are numbered from one /64.

#/127
12001:db8:abcd:3412::/127
22001:db8:abcd:3412::2/127
32001:db8:abcd:3412::4/127
… 4,222,135,388,405,760 more
4,222,135,388,405,7642001:db8:abcd:3412:1e:5:a:6/127
… 9,219,149,901,466,370,043 more
9,223,372,036,854,775,808 (2^63)2001:db8:abcd:3412:ffff:ffff:ffff:fffe/127

References

  • RFC 4291, IP Version 6 Addressing Architecture: §2 (no broadcast), §2.3 (prefix notation), §2.6.1 (Subnet-Router anycast), §2.5.1 64-bit interface identifiers as updated by RFC 7136.
  • RFC 3849, IPv6 Address Prefix Reserved for Documentation: 2001:db8::/32.
  • RFC 5952, A Recommendation for IPv6 Address Text Representation.
  • RFC 5375, IPv6 Unicast Address Assignment Considerations.
  • RIPE-690, Best Current Operational Practice for Operators: IPv6 prefix assignment for end-users (2017).
  • RFC 4862, IPv6 Stateless Address Autoconfiguration, §5.5.3.
  • RFC 6164, Using 127-Bit IPv6 Prefixes on Inter-Router Links, with erratum 3422.
  • RFC 2526, Reserved IPv6 Subnet Anycast Addresses.
  • IANA IPv6 Special-Purpose Address Space registry (updated 2025-10-09).

Other IPv6 prefixes