ZWIEGNET Linux Consultants
$ ipv6calc

IPv6 Subnet Calculator

Calculate the normalized IPv6 network prefix and address space for a CIDR prefix.

How the IPv6 prefix calculator works

An IPv6 prefix is an address and a length, such as 2001:db8:1::/48. The length is the number of leading bits that the network owns. The rest is the interface identifier or further subnet bits. A /64 is the usual size of a single LAN, because SLAAC builds the host half from that boundary. A /48 is a common assignment to a site, which you then split into /64s. A /128 is one address.

The calculator prints the network prefix, the first and last addresses, and how many /64s fit when the prefix is shorter than 64. Work 2001:db8::/32 if you want to see the scale: it contains 65,536 /48s, which is why documentation uses that prefix and you should not announce it. Addresses may be written with :: once, for the longest run of zeros. The tool expects that ordinary notation.

It does not assign addresses, and it does not know your router advertisements. Whether hosts use SLAAC, DHCPv6, or static configuration is a design choice outside the arithmetic. It also does not compress or expand zone indexes such as %eth0. If you paste a link-local address with a zone, drop the zone first.

Prefixes longer than 128 are rejected. A missing colon is rejected. The result is the block, not a suggestion of a gateway.