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 bits | 88 |
|---|---|
| Total addresses | 309485009821345068724781056 |
| First example address | 2001:db8:: |
| Last example address | 2001:db8:ff:ffff:ffff:ffff:ffff:ffff |
There are 24 bits available to number /64 networks within this allocation.
| Prefix | Addresses | /56 | /64 |
|---|---|---|---|
| /32 | 79228162514264337593543950336 | 16777216 | 4294967296 |
| /40 | 309485009821345068724781056 | 65536 | 16777216 |
| /48 | 1208925819614629174706176 | 256 | 65536 |
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