TechKnowSurge
Cisco CCNA 1.8 Cisco CCST Networking 2.3 CompTIA Network+ 3.4
InteractiveNetworkFree

IPv6 Subnet Prefix Calculator

Work with IPv6 prefix lengths: count the /64s a prefix gives, find a host's network prefix, and number subnets in hex.

⚑ Complete this interactive to capture a CTF flag worth 5 points.

About this interactive

An IPv6 address has no subnet mask: a prefix length says how many of its first bits are fixed. On a LAN that is almost always /64, so the first four hextets are the network and the last four are the interface ID, the host's own part. An organisation is usually given a shorter prefix, often a /48 or a /56, and the bits between that prefix and /64 are its subnet ID: n bits number 2^n subnets, and a /48 leaves a whole hextet of them. Because each hex digit is a nibble of 4 bits, prefixes that end on a nibble (/52, /56, /60) are easy to read. Numbering subnets is counting in hex. The first subnet is all zeros, so the 40th subnet is number 39, which is 0010 0111 in binary and 27 in hex: its network is the /48 with :27 in the fourth hextet. Hosts do not come into it: a /64 holds far more hosts than any LAN, so you plan the number of networks, not their size. Seven of the twenty-two questions are drawn each run. The addresses use the IPv6 documentation prefixes (2001:db8::/32 and 3fff::/20). Anything you miss shows the answer and how to work it out.

What you'll learn

Aligned to

Cisco CCNA
1.8 Configure and verify IPv6 addressing and prefix
Cisco CCST Networking
2.3 Identify IPv6 addresses and prefix formats
CompTIA Network+
3.4 Given a scenario, implement IPv4 and IPv6 network services

Key terms

Prefix
The network portion of an IPv6 address, expressed as a slash notation (e.g., /48), that identifies the boundary between the network and host segments.
Nibble
A group of exactly 4 bits, equivalent to one hexadecimal digit; two nibbles make up one byte.
Hexadecimal
Hex
A base-16 number system using digits 0–9 and letters A–F; each hex digit maps to exactly 4 bits, making it a compact shorthand for representing binary data.
Interface ID
The last 64 bits of an IPv6 address that uniquely identify a specific interface or node within a network, equivalent to the host portion in IPv4.

Topics

Ipv6 Ipv6 Subnetting Prefix Length Subnet Id Hexadecimal Interactive Calculation

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →