IP addressing
IPv6 Subnet Calculator
Enter an address with its prefix length. You get the prefix, the range, both ways of writing the address, and how the prefix divides into smaller subnets.
Divide this prefix
- Number of /68 subnets
- 2^4 = 16
2001:db8:abcd:12::/68 2001:db8:abcd:12:1000::/68 2001:db8:abcd:12:2000::/68 2001:db8:abcd:12:3000::/68 2001:db8:abcd:12:4000::/68 2001:db8:abcd:12:5000::/68 2001:db8:abcd:12:6000::/68 2001:db8:abcd:12:7000::/68
Configuration lines
ipv6 address 2001:db8:abcd:12::1/64
ipv6 route 2001:db8:abcd:12::/64 NEXT-HOP
ipv6 prefix-list NAME permit 2001:db8:abcd:12::/64
Result
- AddressRFC 5952 form
- 2001:db8:abcd:12::1
- Expanded
- 2001:0db8:abcd:0012:0000:0000:0000:0001
- Prefix
- 2001:db8:abcd:12::/64
- First address
- 2001:db8:abcd:12::
- Last address
- 2001:db8:abcd:12:ffff:ffff:ffff:ffff
- Addresses
- 2^64 = 18,446,744,073,709,551,616
- Address type
- Documentation (RFC 3849)
- Reverse DNS name
- 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.d.c.b.a.8.b.d.0.1.0.0.2.ip6.arpa
How IPv6 prefixes work
An IPv6 address is 128 bits, written as eight groups of four hexadecimal digits. The prefix length says how many leading bits identify the network. There is no broadcast address and no reserved network address in the IPv4 sense, so every address in a prefix can be assigned.
The short form
RFC 5952 sets one canonical way to write an address: lower case, leading zeros dropped, and the longest run of two or more all-zero groups replaced with a double colon. If two runs are the same length, the first is replaced. Every result here is written that way.
Common prefix lengths
A /64 is the standard size for a LAN segment, and stateless address autoconfiguration needs it. A /127 is used on links between two routers (RFC 6164). A /128 is a single address, as on a loopback. A site commonly receives a /48 or a /56 from its provider.