02 / IPv6 · 4 MIN READ
IPv6: Stop Subtracting Two.
IPv6 uses 128-bit addresses. Its address-assignment rules are not an enlarged version of an IPv4 broadcast subnet.
Count the Address Space Exactly
Enter 2001:db8:1200:34::25/64. The network is 2001:db8:1200:34::/64, and the inclusive end is 2001:db8:1200:34:ffff:ffff:ffff:ffff. The remaining 64 bits describe exactly 18,446,744,073,709,551,616 addresses.
IPCALCULATOR uses integer arithmetic for these totals instead of rounding them through floating-point numbers. Even a /0 total is shown exactly. That accuracy does not mean every address is assignable.
No Broadcast—and No Generic Usable-Host Total
IPv6 has no broadcast address. Inclusive first and last values describe the block, while subnet-router anycast, address type, link context, and allocation policy affect how it can be used. The calculator therefore displays “Not Defined” for a generic IPv6 host count rather than subtracting two or promising that every address is available.
Reference: RFC 4291 — IPv6 addressing architecture.
The Same Address Can Look Different
2001:0db8:0000:0000:0000:0000:0000:0001 and 2001:db8::1 represent the same value. Leading zeros may be omitted, and one :: compresses a run of zero groups. The expanded representation makes the eight groups explicit.
The normalized form uses lowercase hexadecimal and compresses the longest eligible zero run, choosing the leftmost in a tie. Brackets and zone identifiers such as %eth0 are not part of this calculator’s plain-address input.
Reference: RFC 5952 — recommended IPv6 text representation.
Choose Prefixes for Their Job
| Prefix | Context | Do Not Assume |
|---|---|---|
/64 | Common on IPv6 LANs and important to normal SLAAC designs. | That the illustrative /64 shown with your connection IP was discovered. |
/127 | Specified for certain inter-router point-to-point links. | That it is a drop-in replacement for a normal end-user LAN. |
/128 | A single address, often used as a host route. | That this alone describes the connected subnet. |
The math accepts all prefix lengths from /0 through /128. Mathematical validity does not establish that a prefix is suitable for your link or device configuration.
Reference: RFC 6164 — /127 prefixes on inter-router links.