N-01 · Subnet · IPv6 /80
/80 IPv6 subnet
A /80 IPv6 prefix fixes the first 80 of 128 bits and leaves 48. 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^48281,474,976,710,656
- Fit in one /64
- 65,536Smaller than a /64 by 16 bits
- Fit in one /48
- 2^324,294,967,296
IPv6 has no broadcast address and all-zeros and all-ones are ordinary values (RFC 4291 §2), so all 2^48 addresses count. A /80 is longer than /64, so stateless autoconfiguration (SLAAC) doesn't work on it.
What a /80 holds
Longer prefixes inside one /80. Each extra bit halves the block.
| Prefix | In one /80 |
|---|---|
| /96 | 65,536 (2^16) |
| /112 | 4,294,967,296 (2^32) |
| /120 | 1,099,511,627,776 (2^40) |
| /126 | 70,368,744,177,664 (2^46) |
| /127 | 140,737,488,355,328 (2^47) |
| /128 | 281,474,976,710,656 (2^48) |
Where a /80 sits
How many /80 blocks the larger sizes hold.
| Block | /80 blocks in it |
|---|---|
| ::/0, all of IPv6 | 1,208,925,819,614,629,174,706,176 (2^80) |
| 2000::/3, global unicast | 151,115,727,451,828,646,838,272 (2^77) |
| 2001:db8::/32 | 281,474,976,710,656 (2^48) |
| 2001:db8:abcd::/48 | 4,294,967,296 (2^32) |
| 2001:db8:abcd:3400::/56 | 16,777,216 (2^24) |
| 2001:db8:abcd:3412::/64 | 65,536 (2^16) |
IANA assigns unicast space only from 2000::/3, which holds 151,115,727,451,828,646,838,272 (2^77) /80 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 /80
A /80 leaves 48 bits for interface identifiers, fewer than the 64 the addressing architecture expects. RFC 7421 says a subnet prefix longer than /64 is “outside the current IPv6 specifications, so results may vary”, and SLAAC won't configure addresses on it (RFC 4862 §5.5.3).
Routing has no such limit: RFC 7608 (BCP 198) requires forwarding to handle every prefix length up to /128. RFC 7421 also notes that longer prefixes shrink the space an attacker has to scan, and that “prefixes longer than say /80 might significantly increase vulnerability”. One /64 holds 65,536 (2^16) /80s.
Check an address
Pre-filled with 2001:db8:abcd:3412:1e:5:a:7/80. Change the address or the prefix.
Result
2001:db8:abcd:3412:1e::/80
281,474,976,710,656 (2^48) addresses
- First address
- 2001:db8:abcd:3412:1e::
- Last address
- 2001:db8:abcd:3412:1e:ffff:ffff:ffff
- Prefix length
- /80
- Broadcast
- None in IPv6
Longer than /64: SLAAC needs a /64, so devices here need addresses set by hand or by DHCPv6. 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:3412:001e:0000:0000:0000
- Last
- 2001:0db8:abcd:3412:001e:ffff:ffff:ffff
Each hex digit is 4 bits. Bold digits are fixed for the network; orange digits number the interfaces.
2001:db8:abcd:3412::/64 split into /80 · 65,536 blocks
- … 27 before
- 2001:db8:abcd:3412:1e::/80◂
- … 65,501 more
Worked example
Take 2001:db8:abcd:3412:1e:5:a:7/80, written out in full as 2001:0db8:abcd:3412:001e:0005:000a:0007. Each hex digit is 4 bits, so a /80 keeps the first 20 digits (5 full groups) and zeros the other 12. The network is 2001:db8:abcd:3412:1e::/80; setting those digits to f gives the last address, 2001:db8:abcd:3412:1e:ffff:ffff:ffff.
The block holds 281,474,976,710,656 (2^48) addresses. Its first address, 2001:db8:abcd:3412:1e::, is the Subnet-Router anycast address for the prefix (RFC 4291 §2.6.1).
2001:db8:abcd:3412:1e::/80 splits into 65,536 (2^16) /96 blocks. Each /96 is the next 16-bit group down.
| # | /96 | |
|---|---|---|
| 1 | 2001:db8:abcd:3412:1e::/96 | |
| 2 | 2001:db8:abcd:3412:1e:1::/96 | |
| 3 | 2001:db8:abcd:3412:1e:2::/96 | |
| … 2 more | ||
| 6 | 2001:db8:abcd:3412:1e:5::/96 | |
| … 65,529 more | ||
| 65,536 (2^16) | 2001:db8:abcd:3412:1e:ffff::/96 | |
References
- RFC 4291, IP Version 6 Addressing Architecture: §2 (no broadcast), §2.3 (prefix notation), §2.6.1 (Subnet-Router anycast).
- RFC 3849, IPv6 Address Prefix Reserved for Documentation: 2001:db8::/32.
- RFC 5952, A Recommendation for IPv6 Address Text Representation.
- RFC 4862, IPv6 Stateless Address Autoconfiguration, §5.5.3.
- RFC 7421, Analysis of the 64-bit Boundary in IPv6 Addressing; RFC 7608 (BCP 198), prefix lengths in forwarding.
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.