IPv6 /40 Prefix Size and Address Range

Count the address bits in an IPv6 /40, inspect a documentation prefix and compare its size with a /64.

Variable address bits88
Total addresses309485009821345068724781056
First example address2001:db8::
Last example address2001:db8:ff:ffff:ffff:ffff:ffff:ffff

There are 24 bits available to number /64 networks within this allocation.

Whole subnets that fit in each prefix
PrefixAddresses/56/64
/3279228162514264337593543950336167772164294967296
/403094850098213450687247810566553616777216
/48120892581961462917470617625665536

To size an end-site allocation, count the subnets needed today and allow for growth. Compare that count with the prefix offered by the provider. RFC 6177

Open this example in the calculator