How to plan and track IPv6 addresses in an IPAM
How to plan, allocate and track IPv6 in an IPAM: prefixes, addressing plans on nibble boundaries, dual-stack, and keeping IPv4 and IPv6 in one place.
A spreadsheet that has tracked IPv4 for years stops being usable when you paste the first /48 into it. IPv6 needs a different way of thinking about address space than IPv4 does. You manage it as a hierarchy of prefixes, and you stop keeping a list of hosts. Once you work that way, IPv6 is easier to run than IPv4.
Why a spreadsheet does not work for IPv6
A spreadsheet works for IPv4 because a /24 is 256 rows that you can read through. IPv6 removes the assumptions that made that workable.
- The space is very large. A single /64 holds 2^64 addresses, and a site /48 contains 65,536 of those /64s. You cannot list the hosts in a grid.
- Hex does not sort or scan well.
2001:db8:a3f0::/48and2001:db8:a3f1::/48are adjacent, but a text column does not show that. A copy-paste typo is also hard to spot in the middle of eight groups of hex. - The /64 is the basic subnet. SLAAC and many other autoconfiguration mechanisms assume a /64 on every segment. Using a /112 to save space breaks address autoconfiguration.
- The unit of management changes. Addresses are not scarce, so you stop tracking every host and start tracking allocations: which prefix belongs to which site, VLAN or purpose.
A flat list cannot express containment, cannot check that a child fits inside its parent, and cannot tell you what is still free. An IPAM does all three.
Manage prefixes instead of addresses
IPv6 management consists mostly of delegating prefixes down a tree. A common hierarchy has three levels:
- Your RIR assigns an organisation prefix, often a /32, or a /29 for larger allocations.
- You assign a /48 per site, which gives each location 65,536 subnets to work with.
- Inside a site you assign a /64 per segment, where a segment is a VLAN, a point-to-point link or a VM network.
Each level is contained by the one above it, and an IPAM enforces that containment for you: a /64 can only sit inside a /56 that sits inside a /48. Good IPv4 tooling already uses this parent and child model. With IPv6 you cannot work without it.
Build the addressing plan on nibble boundaries
A nibble is 4 bits, which is one hex digit. If you allocate prefixes on multiples of 4 bits (/48, /52, /56, /60, /64), each level of the plan ends on a hex-digit boundary. People can then read the plan from the addresses, and reverse DNS (ip6.arpa) zones split on the same boundaries, so you avoid bit-level delegation.
A nibble-aligned plan looks like this:
Org prefix 2001:db8::/32
Site A 2001:db8:0100::/48 <- 3rd hex group = site ID
Segment 01 2001:db8:0100:0001::/64
Segment 02 2001:db8:0100:0002::/64
Site B 2001:db8:0200::/48
Segment 01 2001:db8:0200:0001::/64
Because every field sits on a digit boundary, you can read "site A, segment 2" in the address itself. You can also encode meaning into specific nibbles, for example one digit for the region, one for the site and one for the function. Keep that light, because a plan with too much encoded in it is very hard to renumber later. Leaving room on nibble boundaries is worth more than an elaborate scheme.
It also helps to allocate sparsely. If you hand out /48s in sequence with no gaps, a site has nowhere to grow. Leave space between assignments so that a site can grow and its routes can be summarised later. The address space is large enough to allow it.
Keep IPv4 and IPv6 in one model
The most costly dual-stack mistake is to run IPv6 in a second spreadsheet "until it settles down". You then have two sources of truth, and they drift apart.
You avoid it by treating the address family as an attribute of the same objects. A network segment is one VLAN that carries both a v4 prefix and a v6 /64. A server is one device with both an A and an AAAA record. Sites, racks, VLANs and devices stay single objects, and only the prefixes attached to them double. An IPAM that models both families in one prefix hierarchy lets you ask what is on VLAN 40 and get the v4 and the v6 answer together.
Track allocations instead of every host
Host-level bookkeeping does not scale to IPv6, and with SLAAC and privacy extensions the set of hosts changes constantly anyway. Track the things that are stable and meaningful:
- Prefixes and delegations: the /48s, /56s and /64s, and who owns them.
- Anchored addresses: gateways, anycast addresses and manually assigned server addresses.
- Documentation and reservations: ranges you have set aside but not yet deployed.
Leave the short-lived client addresses to DNS and network discovery. The source of truth records intent and structure, and it has no need to know every temporary privacy address a laptop generated this morning.
Common mistakes
- Subnetting smaller than /64. It looks economical, and it breaks SLAAC. Use a /64 for every host segment and keep longer prefixes for point-to-point links only.
- Confusing ULA and GUA. Unique Local Addresses (fc00::/7) are for internal-only ranges, and Global Unicast is your routable space. Label which is which in your plan.
- Forgetting reverse DNS. Nibble-aligned prefixes keep
ip6.arpadelegation manageable. Prefixes that are off the boundary make it difficult. - Allocating in sequence without gaps. It works until the first time you need to grow a site or summarise a route.
How Danbyte handles IPv6
Danbyte models IPv6 in the same prefix hierarchy it uses for IPv4, with parent and child containment and with dual-stack prefixes attached to the same sites, VLANs and devices. IPv4 and IPv6 are kept in one place, so you do not need two spreadsheets. Danbyte tracks utilisation for prefixes, but it shows no percentage for an IPv6 prefix that is too large to enumerate. Because Danbyte has a REST API, you can query the addressing plan from Ansible, Terraform or a short script when you build reverse zones or provision a new segment.
Danbyte is free and open source, and you can self-host it on your own hardware. The feature overview shows how prefixes, VLANs and devices are connected.
If you are starting an IPv6 plan now, decide the nibble layout and the gaps between sites first. Both are hard to change once addresses are deployed.
