Introduction
Translate a delegated prefix into a count of equal-sized downstream networks. The result gives the first and last child, so even a very large delegation can be checked without enumerating every subnet.
Formula and calculation
child prefix count = 2^(child prefix − parent prefix)The requested child prefix must be at least as long as the parent. Each longer prefix divides the parent's address range into equal aligned blocks.
- parent prefix · bits
- aligned prefix that contains the child blocks
- child prefix · bits
- prefix length selected for each resulting block
Method and concepts
Let P be the parent length and C the child length. The C − P newly fixed bits select a child, giving 2^(C − P) choices. The remaining 128 − C positions vary inside each child. Starting from the aligned parent, the child at index i begins i × 2^(128 − C) addresses later.
- Supply the parent CIDR shown in the allocation record. Read its normalized network if the supplied address has host bits set.
- Enter a child length at least as long as the parent. Read the child count and compare the first and last networks with your numbering plan.
IPv6 addresses, prefixes and neighbors diagram
- 2001:db8:4a00:1200::/56
- 8 subnet bits · ab
- 2001:db8:4a00:12ab::/64
- Interface identifier · 42
Worked examples
Allocate /64 LANs from a /56 delegation
- Start with 2001:db8:42:7a00::/56. The first 48 bits identify three full groups. The high byte 7a of the fourth group is also fixed.
- Choose /64 for the child. The low byte of the fourth group supplies eight subnet bits, so 2⁸ = 256 LAN prefixes fit.
- The first child is 2001:db8:42:7a00::/64. The last is 2001:db8:42:7aff::/64. A subnet beginning with 7b00 lies beyond this delegation.
IPv6 addresses, prefixes and neighbors: Number subnet 171 in a documentation delegation
- Begin with 2001:db8:4a00:1200::/56. The fourth group covers the final eight prefix bits and the eight available subnet bits.
- Write decimal 171 as hex ab. Replacing the low byte 00 with ab gives 2001:db8:4a00:12ab::/64. The child index ranges from 0 through 255.
- Choose 2001:db8:4a00:12ab::42 as an example interface value. Expanding it gives 2001:0db8:4a00:12ab:0000:0000:0000:0042.
Reference table
| Parent | Child | Child count |
|---|---|---|
| /48 | /56 | 256 |
| /56 | /60 | 16 |
| /60 | /64 | 16 |
| /64 | /64 | 1 |
Reading the result
Each child covers an equal, aligned interval. The last child shown is a network base. Its own last address still contains all ones after the child prefix. Hierarchical subnet plans can reserve groups of child IDs for buildings or regions.
Common mistakes
- Using 128 − C to count children. That exponent counts the addresses inside one child.
- Changing a fixed parent digit while choosing the last child.
Frequently asked questions
Can parent and child lengths match?
Yes. Zero new subnet bits give exactly one child, identical to the normalized parent.
Can I split a /64 into /60 networks?
A /60 covers sixteen /64 networks. A /64 cannot contain that larger block. Extend the child prefix to subdivide the parent.
Why might two links both show fe80::1?
A link-local value is meaningful within a particular link. Each interface can reach its own neighbor using the same spelling, provided the link is specified.
Does an IPv6 router split an oversized packet into fragments?
IPv6 fragmentation is performed by the source. A forwarding router that cannot fit a packet on its outgoing link sends ICMPv6 Packet Too Big feedback, subject to protocol rules.
Can one IPv6 address be compressed in more than one way?
Yes. Leading zeroes in a hextet can be omitted, and one longest run of all-zero hextets can be replaced by ::. Using :: more than once would make the expanded length ambiguous.
Why does an IPv6 link-local address need an interface identifier on some systems?
Link-local scope is limited to one link, and the same address value can exist on several interfaces. A zone or interface name tells the system which link to use.
Does every IPv6 subnet use a /64?
Many ordinary SLAAC LAN designs use /64, but not every prefix in every role is /64. Follow the addressing plan and protocol requirements for the link.
Why are IPv6 addresses enclosed in brackets in a URL?
Colons are part of IPv6 notation and also separate a URL host from its port. Brackets make the address boundary unambiguous, for example https://[2001:db8::1]:8443/.
Does IPv6 have broadcast addresses?
No. IPv6 uses multicast for group delivery and anycast for selected one-to-nearest service behavior; it does not use IPv4-style broadcast.
Can an IPv6 interface have multiple addresses?
Yes. An interface can hold link-local, global, temporary, and other scoped addresses at the same time, depending on its configuration and network advertisements.
What is the role of a link-local IPv6 address?
It enables communication on the local link, including neighbor discovery and many router interactions. Routers do not forward link-local traffic to another link.
Does a compressed IPv6 address preserve leading zeroes?
The notation omits leading zeroes within hextets and may compress one longest zero run. Expanding the address restores a fixed eight-hextet value without changing its bits.
What is an IPv6 unique local address?
Unique local addresses come from fc00::/7 and are intended for local communication. They are not guaranteed to be globally routed, though they are designed to be locally unique when generated correctly.
Why use 2001:db8:: in examples?
The 2001:db8::/32 prefix is reserved for documentation. It avoids presenting a live public allocation as a fictional example.
Does IPv6 require NAT for address conservation?
IPv6's address space is designed to provide abundant addresses, so ordinary deployments do not need NAT for conservation in the same way IPv4 often does. Firewalls and routing policy still control access.
What is Duplicate Address Detection?
IPv6 Neighbor Discovery uses Duplicate Address Detection to check whether an address is already in use on a link before an interface begins using it.
Can an IPv6 subnet include a broadcast address?
No. IPv6 uses multicast rather than broadcast. A prefix calculator can still show its numeric first and last address values, but that does not create an IPv4-style broadcast role.
Further learning and references
- RFC 6177 · IPv6 address assignment to end sites
Reference source for the concepts and service described in this guide.
- RFC 8200 · IPv6 packet format and forwarding
- RFC 5952 · Canonical IPv6 text
- RFC 5942 · On-link determination
- RFC 4291 · IPv6 addressing architecture

