IPv4 Subnet Calculator
Network, broadcast, host range, and masks for any IPv4 block.
Enter an IPv6 address with a prefix length to get the network, the first and last address, and the exact number of addresses. The IPv6 subnet calculator also shows the full and compressed forms and the address type.
2001:db8::1) or full form.2001:db8::/48) or in Prefix length.An IPv6 address has 128 bits. With a prefix length p:
IPv6 has no broadcast address, so the whole block is usable. The compressed form follows RFC 5952: lowercase, leading zeros dropped, and the longest run of zero groups written as ::.
2001:db8::/64 = 18,446,744,073,709,551,616 addresses, from 2001:db8:: to 2001:db8::ffff:ffff:ffff:ffff. Type: documentation.2001:db8:abcd::/48, a common site allocation, holds 65,536 /64 subnets.fd12:3456:789a:1::/64 is a unique local address (ULA), the IPv6 counterpart of private IPv4 space.2001:db8::1/127 is a point-to-point link with 2 addresses (RFC 6164).| Prefix | Typical use | /64 subnets inside |
|---|---|---|
| /32 | Allocation to an ISP or large network | 4,294,967,296 |
| /48 | One site or organization | 65,536 |
| /56 | Home or small business from an ISP | 256 |
| /64 | One LAN segment (needed for SLAAC) | 1 |
| /127 | Router-to-router link | None |
| /128 | A single address, such as a loopback | None |
%eth0 are rejected. They name a local interface and are not part of the address.18,446,744,073,709,551,616, which is 2 to the power of 64. That is the standard size of one IPv6 LAN.
SLAAC, the way most devices configure their own IPv6 address, builds a 64-bit interface ID. It only works when the network prefix is exactly 64 bits long.
No. IPv6 uses multicast instead, so every address in a block, including the first and the last, can be assigned.
65,536. The 16 bits between /48 and /64 give 2 to the power of 16 subnet IDs.
Often used together with the IPv6 CIDR Calculator.
Network, broadcast, host range, and masks for any IPv4 block.
Shorten IPv6 addresses (RFC 5952) or expand them in full.
Random fd00::/8 /48 prefix and its first /64 subnets.