Skip to content
Tape and Square

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.

PrefixIn one /80
/9665,536 (2^16)
/1124,294,967,296 (2^32)
/1201,099,511,627,776 (2^40)
/12670,368,744,177,664 (2^46)
/127140,737,488,355,328 (2^47)
/128281,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 IPv61,208,925,819,614,629,174,706,176 (2^80)
2000::/3, global unicast151,115,727,451,828,646,838,272 (2^77)
2001:db8::/32281,474,976,710,656 (2^48)
2001:db8:abcd::/484,294,967,296 (2^32)
2001:db8:abcd:3400::/5616,777,216 (2^24)
2001:db8:abcd:3412::/6465,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.

/80

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: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).

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: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

  1. … 27 before
  2. 2001:db8:abcd:3412:1e::/80◂
  3. … 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
12001:db8:abcd:3412:1e::/96
22001:db8:abcd:3412:1e:1::/96
32001:db8:abcd:3412:1e:2::/96
… 2 more
62001: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