Planning IPv6 networks
With IPv6 you no longer count scarce addresses but networks. A subnet is practically always a /64, because SLAAC and many other features require exactly this size. So you plan how many /64s you need and how to group them.
- /48 is what companies and sites usually get: 65,536 networks of /64, or 256 blocks of /56.
- /56 is what many providers give home customers: 256 networks of /64.
- /64 is a single segment, e.g. a VLAN.
Plan along hex digits, i.e. in steps of 4 bits (/48, /52, /56, /60, /64). Then each level can be read at one position of the address, and reverse zones in DNS can be delegated cleanly. Other lengths need several ip6.arpa zones for one network.
Which addresses are for what?
| Range | Meaning |
|---|---|
2000::/3 | Global unicast, routable on the internet |
fd00::/8 | Unique local addresses (ULA), like private IPv4 networks, internal only |
fe80::/10 | Link-local, every interface has one, valid only on the segment |
ff00::/8 | Multicast, e.g. ff02::1 for all nodes |
2001:db8::/32 | Only for documentation and examples |
Calculate IPv4 networks in the subnet calculator and check reverse records with the DNS lookup. How large packets may be over tunnels is shown by the MTU calculator.
FAQ
Why should every subnet be a /64?
SLAAC, automatic address configuration, needs 64 bits for the interface ID. Privacy extensions and some routers also assume /64. Smaller networks are only common for point-to-point links, e.g. /127.
How many /64s are in a /56?
256. A /48 holds 65,536. The planner shows the count for every combination and lists the networks.
Do I need ULA if I have global addresses?
Not necessarily. ULAs are handy for internal services that should keep stable addresses even when the provider prefix changes. Generate the prefix randomly as RFC 4193 requires, not fd00::/48.
What is ip6.arpa?
The zone for reverse DNS with IPv6. Every hex digit of the address becomes its own label, in reverse. The planner creates zone and PTR names you can put straight into your DNS server.