IPv6 /64 subnet
An IPv6 /64 fixes the first 64 bits and leaves 64 for subnets and interfaces. That is 18,446,744,073,709,551,616 addresses.
Example: 2001:db8::/64
- CIDR block
- 2001:db8::/64
- Network address
- 2001:db8::
- Last address
- 2001:db8::ffff:ffff:ffff:ffff
- Total addresses
- 18,446,744,073,709,551,616
- Network, written out
- 2001:0db8:0000:0000:0000:0000:0000:0000
Check another address in the subnet calculator.
Where you see an IPv6 /64
- A /64 is the standard size of one IPv6 subnet. The addressing architecture fixes interface identifiers at 64 bits (RFC 4291), and link specifications such as RFC 2464 for Ethernet require a /64 prefix for stateless address autoconfiguration (SLAAC, RFC 4862).
What fits inside an IPv6 /64
| Smaller block | How many |
|---|---|
| /65 | 2 |
| /66 | 4 |
| /67 | 8 |
| /68 | 16 |
| /69 | 32 |
| /70 | 64 |
| /71 | 128 |
| /72 | 256 |
| /128 | 18,446,744,073,709,551,616 |
Splitting 2001:db8::/64 into /66 blocks starts with 2001:db8::/66, 2001:db8:0:0:4000::/66, 2001:db8:0:0:8000::/66, 2001:db8:0:0:c000::/66.
How many fit in a larger block
- A /32 holds 4,294,967,296 blocks of IPv6 /64.
- A /48 holds 65,536 blocks of IPv6 /64.
- A /56 holds 256 blocks of IPv6 /64.
Questions
How many addresses are in an IPv6 /64?
An IPv6 /64 holds 18,446,744,073,709,551,616 addresses, which is 2^64. IPv6 has no broadcast address. Apart from the Subnet-Router anycast address at the start of each /64 (RFC 4291) and the top 128 addresses of each /64 reserved for anycast (RFC 2526), every address can be assigned.
What is an example of an IPv6 /64?
2001:db8::/64 runs from 2001:db8:: to 2001:db8::ffff:ffff:ffff:ffff. It is taken from 2001:db8::/32, the range reserved for documentation (RFC 3849).