NETWORKING / IPv6

IPv6 Subnet Calculator: Check Prefixes, Expand Addresses, Get Reverse DNS and Plan /64 Subnets

Break down any IPv6 address and prefix, split it by prefix length or by how many subnets you need, or turn a site allocation into numbered /64 networks. The planner treats /64 as the standard LAN size, so there’s no IPv4-style host counting.

Enter an IPv6 address

/
/

Pick a child prefix, or just say how many subnets you need. Ask for 12 and you’ll get 16, because subnets split in powers of two. The table lists up to 256.

What you can use it for

With IPv6 you’re rarely short of addresses. Planning is about keeping networks organised, handing out prefixes cleanly and catching notation mistakes.

Numbering VLANs inside a /48

Say your team is given 2001:db8:1200::/48 and needs LANs for staff, servers, voice, Wi-Fi, building systems and guests. The 16 bits between /48 and /64 give you 65,536 possible /64s, so you can make the subnet ID match the VLAN number. VLAN 10 becomes 2001:db8:1200:10::/64, VLAN 20 becomes 2001:db8:1200:20::/64, and so on. Put the /48 into the planner to list them and confirm none clash.

Handing out prefixes to sites or customers

Big allocations are usually split in layers. An ISP might give each customer a /56, which holds 256 LANs. A company with a /40 might give each region a /48, which holds 65,536. A branch that receives 2001:db8:4500:7a00::/56 can number its /64s from 7a00 to 7aff. The calculator shows where each block starts and ends, so you don’t give two sites overlapping space.

Troubleshooting a device’s address

Enter something like 2001:db8:abcd:12:4a2f:10ff:fe91:7c20/64 and the calculator splits it into its subnet, 2001:db8:abcd:12::/64, and the 64-bit interface ID. That tells you whether the device landed on the right LAN and whether two hosts can talk without a router. The expanded form also shows up missing or misplaced groups, and the address type and reverse-DNS name help when you’re setting up DNS or tracking down a link-local versus global address mix-up.

IPv6 prefixes vs IPv4 subnet masks

An IPv6 address is 128 bits long, and the network boundary is always written as a prefix length such as /64. There’s no dotted subnet mask and no broadcast address. Jobs that IPv4 handles with broadcast are done with multicast and neighbour discovery instead.

Why /64 is the standard LAN size

Ordinary LANs, whether global or unique-local, use a /64, which leaves 64 bits for the interface ID. That’s far more addresses than any LAN will use, and it’s meant to be. Features like SLAAC rely on it, so you size IPv6 networks by structure, not by counting devices.

Site prefixes and subnet IDs

A /48 leaves 16 bits of subnet ID before the /64 boundary, enough for 65,536 LANs. A /56 leaves 8 bits, which gives you 256.

Stick to nibble boundaries where you can

Each hex digit in an IPv6 address is four bits, known as a nibble. If your prefix length is a multiple of four, like /48, /52, /56 or /60, the boundary falls neatly between two digits. You can read the network straight off the address, and every subnet ID uses whole digits.

It matters most for reverse DNS, where each hex digit becomes one label in ip6.arpa. Say a region is handed 2001:db8:40::/46. That boundary sits halfway through a digit, so there’s no single reverse zone for it. You’d need four: one each for the /48s from 2001:db8:40:: to 2001:db8:43::. Round to a multiple of four and you avoid that juggling.

Common IPv6 prefix sizes

Prefix/64s insideTypically used for
/324,294,967,296An ISP’s allocation
/4016,777,216A large organisation or a provider’s region
/4865,536One site or organisation
/56256A home or small business connection
/6016A smaller customer delegation
/641One LAN
/127—A link between two routers
/128—One address, such as a loopback

A /127 or /128 is smaller than a LAN, so it holds no /64s. They’re only for router links and single addresses, never for a network of devices.

Compressed and expanded notation

You can drop leading zeros in any group, and replace one run of all-zero groups with ::. The expanded form always shows all eight groups at four hex digits each.

IPv6 practice questions

These cover the same skills as CCNA-style IPv6 labs. The addresses and answers are our own, and you can check each one with the calculator.

What is the subnet prefix of 2001:db8:9e1:44:a3::17/64?

Take the first four groups: 2001:db8:9e1:44::/64. The rest, a3:0:0:17, is the interface ID. Watch out for the ::, which stands for two zero groups here, not one.

What are the next three /64 subnets after 2001:db8:c0de:9::/64?

2001:db8:c0de:a::/64, 2001:db8:c0de:b::/64 and 2001:db8:c0de:c::/64. The groups are hexadecimal, so after 9 comes a, not 10.

A site is given a /48. How many /64 LANs can it create?

65,536. There are 16 bits between /48 and /64, and 216 is 65,536.

Which /64 subnet IDs belong to 2001:db8:3b00:5c00::/56?

5c00 through 5cff, which is 256 LANs. The /56 fixes the first two hex digits of the fourth group and leaves the last two free.

What is the expanded form of 2001:db8:0:7::e0?

2001:0db8:0000:0007:0000:0000:0000:00e0. Five groups are written out, so the :: has to stand for the missing three, and each group is padded to four digits.

How do you compress 2001:0db8:0000:0000:00a0:0000:0000:0001?

2001:db8::a0:0:0:1. There are two runs of two zero groups. When runs tie, the standard (RFC 5952) says to shorten the first one with :: and write the other as 0:0.

Is 2001:db8::4::9 a valid IPv6 address?

No. :: can only appear once. With two, there’s no way to tell how many zero groups each one stands for.

Are 2001:db8:77:a::10/64 and 2001:db8:77:a:ffff::2/64 on the same subnet?

Yes. Both start with 2001:db8:77:a, so both sit in 2001:db8:77:a::/64. The second one looks very different, but only its interface ID has changed.

What type of address is fd12:3456:789a:1::25?

A unique local address. It falls in fc00::/7, and the fd start means it was generated locally. Like IPv4 private ranges, it’s for internal use and isn’t routed on the public internet. Don’t confuse it with link-local addresses, which start with fe80.

What is the broadcast address of 2001:db8:5:1::/64?

There isn’t one. IPv6 has no broadcast, so the last address in the range is just an ordinary address. To reach every device on a link, IPv6 uses the all-nodes multicast address ff02::1.

How many reverse DNS zones does 2001:db8:40::/46 need?

Four. A /46 ends two bits into a hex digit, and reverse zones can only split on whole digits. So you round down to the next multiple of four, /48, and create one zone for each of the four /48s inside: 40, 41, 42 and 43.

When should you use a /127 instead of a /64?

On a link between two routers. RFC 6164 recommends a /127 there: it has exactly two addresses, one for each end. That closes off a whole /64 that attackers could otherwise scan to flood the routers’ neighbour tables. For anything with ordinary devices on it, stick with /64.

← Networking calculators