N-01 · Subnet · IPv6 /56
/56 IPv6 subnet
A /56 IPv6 prefix fixes the first 56 of 128 bits and leaves 72. 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^724,722,366,482,869,645,213,696
- /64 networks
- 256
- Fit in one /48
- 256
IPv6 has no broadcast address and all-zeros and all-ones are ordinary values (RFC 4291 §2), so all 2^72 addresses count. A /56 is the smaller end-site size RFC 6177 says registries encourage, and the size RIPE-690 suggests for homes.
What a /56 holds
Longer prefixes inside one /56. Each extra bit halves the block.
| Prefix | In one /56 |
|---|---|
| /64 | 256 |
| /80 | 16,777,216 (2^24) |
| /96 | 1,099,511,627,776 (2^40) |
| /112 | 72,057,594,037,927,936 (2^56) |
| /120 | 18,446,744,073,709,551,616 (2^64) |
| /126 | 1,180,591,620,717,411,303,424 (2^70) |
| /127 | 2,361,183,241,434,822,606,848 (2^71) |
| /128 | 4,722,366,482,869,645,213,696 (2^72) |
Where a /56 sits
How many /56 blocks the larger sizes hold.
| Block | /56 blocks in it |
|---|---|
| ::/0, all of IPv6 | 72,057,594,037,927,936 (2^56) |
| 2000::/3, global unicast | 9,007,199,254,740,992 (2^53) |
| 2001:db8::/32 | 16,777,216 (2^24) |
| 2001:db8:abcd::/48 | 256 |
IANA assigns unicast space only from 2000::/3, which holds 9,007,199,254,740,992 (2^53) /56 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 /56
RFC 6177 notes that the registries changed their end-site policy “to encourage the assignment of smaller (i.e., /56) blocks to end sites”. RIPE-690 suggests /56 for residential customers and calls assigning anything longer than /56 “strongly discouraged”.
Eight bits separate /56 from /64, so a /56 is 256 /64 networks, the same count RFC 5375 gives. A /48 holds 256 of them.
Check an address
Pre-filled with 2001:db8:abcd:3412:1e:5:a:7/56. Change the address or the prefix.
Result
2001:db8:abcd:3400::/56
4,722,366,482,869,645,213,696 (2^72) addresses
- First address
- 2001:db8:abcd:3400::
- Last address
- 2001:db8:abcd:34ff:ffff:ffff:ffff:ffff
- Prefix length
- /56
- Broadcast
- None in IPv6
Holds 256 /64 networks. Each LAN normally gets one /64. IPv6 has no broadcast address; the first address is the subnet-router anycast address (RFC 4291).
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:3400:0000:0000:0000:0000
- Last
- 2001:0db8:abcd:34ff: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 /56 · 256 blocks
- … 49 before
- 2001:db8:abcd:3400::/56◂
- … 199 more
Worked example
Take 2001:db8:abcd:3412:1e:5:a:7/56, written out in full as 2001:0db8:abcd:3412:001e:0005:000a:0007. Each hex digit is 4 bits, so a /56 keeps the first 14 digits (3 full groups and 2 digits of the next) and zeros the other 18. The network is 2001:db8:abcd:3400::/56; setting those digits to f gives the last address, 2001:db8:abcd:34ff:ffff:ffff:ffff:ffff.
The block holds 4,722,366,482,869,645,213,696 (2^72) addresses. Its first address, 2001:db8:abcd:3400::, is the Subnet-Router anycast address for the prefix (RFC 4291 §2.6.1).
2001:db8:abcd:3400::/56 splits into 256 /64 blocks. Each is one LAN, the size SLAAC needs.
| # | /64 | |
|---|---|---|
| 1 | 2001:db8:abcd:3400::/64 | |
| 2 | 2001:db8:abcd:3401::/64 | |
| 3 | 2001:db8:abcd:3402::/64 | |
| … 15 more | ||
| 19 | 2001:db8:abcd:3412::/64 | |
| … 236 more | ||
| 256 | 2001:db8:abcd:34ff::/64 | |
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 6177 (BCP 157), IPv6 Address Assignment to End Sites, which replaced RFC 3177.
- RFC 5375, IPv6 Unicast Address Assignment Considerations.
- RIPE-690, Best Current Operational Practice for Operators: IPv6 prefix assignment for end-users (2017).
Other IPv6 prefixes
Related tools
- Subnet calculatorNetwork, broadcast, host range, masks and a binary view from any IPv4 or IPv6 address and prefix.
- CIDR calculatorTurn IPv4 or IPv6 ranges into the fewest CIDR blocks, merge a list, and check it for overlaps.
- VLAN plannerCarve a parent block into right-sized subnets with VLAN IDs, then export CSV or Markdown.