Computer networking • Beginner to advanced

Subnetting & IP Address Learning Center

Learn IPv4 addressing, binary, subnet masks and CIDR step by step. Then test your understanding with short subnetting questions and instant explanations.

Start learning
Self-paced lessonsIPv4 fundamentalsInteractive practice

Your learning path

Build the concepts in order. Each topic introduces the idea, explains why it matters and gives you a quick example.

01 · Foundation

IP address basics

Understand IPv4, octets, private ranges and what an address identifies.

02 · Foundation

Binary numbers

Read the eight bits in an octet and convert common decimal values.

03 · Core skill

Subnet masks

Separate network bits from host bits and understand prefix length.

04 · Core skill

CIDR notation

Interpret prefixes such as /24, /26 and /30.

05 · Applied

Network calculations

Find network IDs, broadcast addresses and usable host ranges.

06 · Practice

Subnetting quiz

Answer questions, get instant feedback and track your score.

Step-by-step lessons

Choose a lesson. Use the Next lesson button to move through the fundamentals in sequence.

Lesson 1 of 6

What is an IPv4 address?

An IPv4 address is a 32-bit number used to identify a network interface. It is usually written as four decimal octets separated by dots.

Example: 192.168.1.10 contains four octets. Each octet ranges from 0 to 255.

Subnetting divides an IP network into smaller logical networks. It helps organize devices, manage address space and control broadcast domains.

Quick subnet reference

Common IPv4 prefixes and the number of usable host addresses in a traditional subnet (excluding network and broadcast addresses).

CIDRSubnet maskTotal addressesUsable hosts
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242

Special-purpose networks and point-to-point conventions can differ. This table describes the common traditional IPv4 subnet calculation.

Subnetting practice quiz

Choose an answer to see whether it is correct and why. Questions cover beginner-level IPv4 and subnetting fundamentals.

Question 1 of 8Score: 0
How many bits are in an IPv4 address?

Frequently asked questions

What is subnetting in networking?

Subnetting is the process of dividing an IP network into smaller logical networks. A subnet mask or CIDR prefix identifies which bits belong to the network portion and which bits are available for host addressing.

What does /24 mean in an IP address?

A /24 prefix means the first 24 bits are the network portion. It leaves 8 host bits, giving 256 total IPv4 addresses and typically 254 usable host addresses in a traditional subnet.

How do I calculate usable hosts?

For a typical IPv4 subnet, calculate 2 to the power of the host-bit count, then subtract 2 for the network and broadcast addresses. Special cases such as /31 point-to-point links and /32 host routes use different conventions.

Should I learn binary before subnetting?

Yes. You can use shortcuts for common subnet sizes, but understanding binary makes subnet masks, block sizes and network boundaries much easier to explain and troubleshoot.

Ready to calculate a real subnet?

Apply what you have learned with the site’s IPv4 subnet calculator. You can also practise network design in our interactive Network Topology Lab.

Open Subnet Calculator →

Learning content covers IPv4 fundamentals. It is educational material and does not replace network-specific design documentation.