IP address basics
Understand IPv4, octets, private ranges and what an address identifies.
Learn IPv4 addressing, binary, subnet masks and CIDR step by step. Then test your understanding with short subnetting questions and instant explanations.
Start learningBuild the concepts in order. Each topic introduces the idea, explains why it matters and gives you a quick example.
Understand IPv4, octets, private ranges and what an address identifies.
Read the eight bits in an octet and convert common decimal values.
Separate network bits from host bits and understand prefix length.
Interpret prefixes such as /24, /26 and /30.
Find network IDs, broadcast addresses and usable host ranges.
Answer questions, get instant feedback and track your score.
Choose a lesson. Use the Next lesson button to move through the fundamentals in sequence.
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.
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.
Common IPv4 prefixes and the number of usable host addresses in a traditional subnet (excluding network and broadcast addresses).
| CIDR | Subnet mask | Total addresses | Usable hosts |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
Special-purpose networks and point-to-point conventions can differ. This table describes the common traditional IPv4 subnet calculation.
Choose an answer to see whether it is correct and why. Questions cover beginner-level IPv4 and subnetting fundamentals.
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.
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.
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.
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.
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.