IPv6 Prefix Plan Calculator
Plan site and LAN prefixes from an assigned IPv6 CIDR, check demand against bit capacity, and build a normalized allocation ledger.{{ summaryTitle }}
{{ summaryValue }}{{ summaryLine }} {{ badge.label }} {{ badge.value }}Prefix tree unavailable.
| Measure | Value | Planning meaning | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.note }} |
| Check | Status | Recommended action | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.note }} |
| Allocation | Site prefix | First LAN | Last LAN | LAN slots | Copy |
|---|---|---|---|---|---|
| {{ row.label }} | {{ row.sitePrefix }} | {{ row.firstLan }} | {{ row.lastLan }} | {{ row.lanSlots }} |
An IPv6 allocation succeeds when its boundaries remain useful long after the first subnet is connected. The 128-bit address is divided from the left: an assigned parent prefix identifies the organization or aggregate, added bits identify sites, more bits identify LANs, and the remaining bits identify interfaces. Each longer prefix therefore trades the number of child networks against the address space left inside them.
Hierarchical planning matters because routes, firewall policy, reverse DNS, monitoring, and asset records all benefit from predictable blocks. Giving every branch an equal site prefix makes summarization and delegation easier. Giving every site the same LAN boundary makes local allocations comparable, even when some sites initially need only a few networks.
- Parent prefix
- The assigned Classless Inter-Domain Routing (CIDR) block from which every site allocation must be drawn.
- Site prefix
- An equal child block reserved for one branch, region, tenant, or other planning unit.
- LAN prefix
- A routed subnet inside a site. A
/64leaves a 64-bit interface identifier and fits the normal assumptions of IPv6 stateless address autoconfiguration on common link types.
A common hierarchy is /48 to /56 to /64. The eight bits between /48 and /56 create 256 site blocks, while the next eight bits create 256 LANs inside every site. Those counts are independent: unused LANs in one site do not increase another site's allocation.
Demand should include known growth and deliberate reservations, but capacity alone does not approve a prefix. Address scope must match the deployment, non-network bits in an entered CIDR should be normalized to the network boundary, and unusual LAN sizes need an explicit operational reason. Nibble-aligned boundaries—prefix lengths divisible by four—also make hexadecimal documentation and reverse-DNS delegation easier, although a non-nibble boundary is still mathematically valid.
How to Use This Tool:
Start with the prefix actually assigned to the design, then choose boundaries that cover demand without breaking the intended LAN model.
- Enter Assigned parent prefix as one IPv6 CIDR, then confirm the normalized parent shown in Capacity audit. If host bits were present, use the normalized network in the plan.
- Choose Site prefix length and LAN prefix length. Keep the order parent prefix ≤ site prefix ≤ LAN prefix; a shorter site or LAN boundary is rejected.
- Enter Sites needed and LANs per site needed. Read the two fit checks separately because total unused address space cannot compensate for an undersized site or LAN boundary.
- Set the Ledger start index when you need a later allocation and add an optional site label. Check the generated site prefix, first LAN, and last LAN against the routing or IP address management record before assigning it.
Interpreting Results:
Site capacity and LAN capacity are exact powers of two for the selected boundaries. A fit means demand is less than or equal to capacity; it does not mean the allocation has enough operational reserve or matches an upstream assignment policy.
- Use Required site prefix and Required LAN prefix as minimum bit requirements for the entered counts, then choose a boundary that also leaves deliberate growth room.
- Treat a non-/64 LAN warning as a design review, not a syntax error. Point-to-point links and specialized systems may use other sizes, but ordinary autoconfigured LANs commonly depend on the 64-bit boundary.
- Review documentation, unique-local, link-local, multicast, loopback, and unspecified scope warnings before copying a ledger row into a production plan.
- Confirm the first and last generated prefixes in an independent IP address management system. The ledger proves arithmetic sequence, not ownership or route availability.
Technical Details:
Prefix capacity comes from the number of bits added at each boundary. Every added bit doubles the number of equal child prefixes, so capacity is exact even when the resulting count is too large to display conveniently as an ordinary decimal number.
Formula Core:
The site and LAN counts use the same power-of-two rule at different levels of the hierarchy.
| Symbol | Meaning | Unit |
|---|---|---|
| pparent | Assigned parent prefix length | bits |
| psite | Selected site prefix length | bits |
| pLAN | Selected LAN prefix length | bits |
| Csite | Equal site prefixes in the parent | count |
| CLAN | Equal LAN prefixes in each site | count |
For /48 to /56 to /64, both exponents are 8. That gives 28 = 256 sites and 256 LANs per site. The total number of LAN prefixes under the parent is 264 − 48 = 65,536, but the per-site check remains 256.
Allocation and Validation Rules:
| Rule | Exact behavior | Planning consequence |
|---|---|---|
| Boundary order | Parent ≤ site ≤ LAN, with every prefix from 0 to 128 | Child blocks cannot be broader than their containers. |
| Demand fit | Needed count ≤ 2added bits | Equality fits but leaves zero spare allocations. |
| Required boundary | Base prefix + ceiling(log2(demand)) | Non-power-of-two demand consumes the next whole bit. |
| Ledger sequence | Site base = parent network + index × site block size | The zero-based start index must be below site capacity. |
| Text normalization | Host bits are cleared and the address is compressed consistently | Different spellings of the same network converge on one CIDR. |
Limitations:
The plan models equal-size hierarchical allocations. It does not test route advertisements, registry ownership, duplicate use elsewhere, variable-length allocations, DHCPv6 or SLAAC policy, reverse-DNS configuration, or firewall reachability. Special-scope warnings identify address categories but cannot decide whether a private lab, documentation example, or production network is appropriate.
Worked Examples:
Regional plan with reserved growth
An assigned 2001:db8:1200::/48 is divided at /56 for sites and /64 for LANs. Demand of 120 sites and 80 LANs per site fits within 256 at each boundary, leaving 136 site slots and 176 LAN slots per site. The documentation-prefix warning remains important: the arithmetic is valid, but 2001:db8::/32 belongs in examples rather than a live routed deployment.
References:
- RFC 4291: IP Version 6 Addressing Architecture, RFC Editor, February 2006.
- RFC 6177: IPv6 Address Assignment to End Sites, RFC Editor, March 2011.
- RFC 7421: Analysis of the 64-bit Boundary in IPv6 Addressing, RFC Editor, January 2015.
- RFC 5952: A Recommendation for IPv6 Address Text Representation, RFC Editor, August 2010.
- RFC 3849: IPv6 Address Prefix Reserved for Documentation, RFC Editor, July 2004.