Introduction
Use common IPv6 prefix lengths to read a delegation letter or subnet schedule. The reference gives both address capacity and the count of complete /64 blocks, two distinct units of planning.
Formula and calculation
addresses = 2^(width − prefix); last = network + addresses − 1A prefix fixes the leading bits and leaves the remaining bits available to identify values in the block. The calculator aligns the network address by clearing those remaining bits.
- width · bits: 32 for IPv4 or 128 for IPv6
- address length
- prefix · bits
- number of leading network bits
- network · address
- first aligned address in the block
Method and concepts
A /64 holds 2^64 addresses. For any parent of length P up to 64, exactly 2^(64 − P) such blocks fit. A more-specific prefix fits inside a /64 and contains zero complete /64 blocks, even though it still contains addresses.
- Select a prefix from the reference. Start with the number of variable bits to check its address count.
- For site planning, compare the complete /64 count with the number of links you intend to number. For an individual interface route, inspect /128 instead.
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
Budget a /56 by buildings and links
- A site receives a /56. Crossing the boundary from /56 to /64 adds eight bits, yielding 256 complete /64 blocks.
- Use four bits for a building and four for a link. That divides the delegation into sixteen /60 building blocks, each containing sixteen /64 links.
- Reserving one complete /60 for future use leaves fifteen building blocks, or 240 /64s. This plan uses prefix counts without enumerating individual interface addresses.
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
| Prefix | Complete /64s | Example use |
|---|---|---|
| /48 | 65,536 | Site allocation |
| /56 | 256 | Delegation |
| /64 | 1 | Ethernet LAN |
| /127 | 0 | Inter-router link |
| /128 | 0 | Single interface route |
Reading the result
Prefix length describes size. A /48 in the table is an example allocation size and implies no entitlement or provider policy. A /64 is common for Ethernet SLAAC. A /127 is used on certain inter-router links, and a /128 can identify a single loopback route.
Common mistakes
- Reading zero complete /64s as zero addresses. A /127 still contains two addresses.
- Assuming any 64-bit interface identifier was derived from a MAC address. Several address-generation methods exist.
Frequently asked questions
Why include /0 in a subnet reference?
It gives the boundary case for prefix matching. With no bits fixed, ::/0 represents a default route and spans the whole 128-bit space.
Does a /96 always mean IPv4 translation?
No. The length leaves 32 bits at the end. The actual prefix and its assigned purpose determine how those bits are interpreted.
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 7421 · analysis of the 64-bit boundary in IPv6 addressing
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

