The math
The subnet ID lives in the third hextet. Each /48 still contains 65,536 /64 LAN segments.
First subnets of 2001:db8::/32
| # | /48 subnet |
|---|---|
| 1 | 2001:db8::/48 |
| 2 | 2001:db8:1::/48 |
| 3 | 2001:db8:2::/48 |
| 4 | 2001:db8:3::/48 |
| 65,536 | 2001:db8:ffff::/48 |
Addresses are written in RFC 5952 form: lowercase, no leading zeros, longest zero run compressed to ::.
Planning tip
Keep subnet boundaries on nibbles (multiples of 4 bits) so each subnet ID maps to whole hex digits and reverse DNS (ip6.arpa) delegation stays clean. Encode structure (site, function, VLAN) in those digits instead of allocating sequentially.
Other sizes inside a /32
| New prefix | How many fit | /64 networks in each |
|---|---|---|
| /36 | 16 | 268,435,456 |
| /40 | 256 | 16,777,216 |
| /44 | 4,096 | 1,048,576 |
| /48 | 65,536 | 65,536 |
| /52 | 1,048,576 | 4,096 |
| /56 | 16,777,216 | 256 |
| /60 | 268,435,456 | 16 |
| /64 | 4,294,967,296 | 1 |
In practice
Each /48 holds 1,208,925,819,614,629,174,706,176 addresses. If you use 100 /48 networks (one per VLAN, say), you take up 0.1526% of the /32 and still have 65,436 left. The 16 bits between /32 and /48 are 4 hex digits: each digit multiplies the number of networks by 16.
To try other values, open the IPv6 subnets calculator with these numbers already filled in.