What is an IPv4 address?
An IPv4 address is a 32-bit address written as four decimal octets, such as 192.168.10.14.
Beginner-friendly • IPv4-focused • Interactive
This site starts with the basics, teaches the vocabulary, and then gives students a full set of tools to practice CIDR notation, subnet masks, host counts, equal subnetting, VLSM planning, binary conversion, and quick self-check quizzes.
1. Basics
These cards explain the ideas students need before jumping into calculators.
An IPv4 address is a 32-bit address written as four decimal octets, such as 192.168.10.14.
Subnetting splits a larger network into smaller networks so addresses can be organized and used more efficiently.
CIDR uses a slash and a number like /27. The number tells you how many bits belong to the network portion.
A subnet mask shows which bits are network bits and which bits are host bits. Example: /26 = 255.255.255.192.
On most normal IPv4 LAN subnets, one address is the network address and one is the broadcast address, so usable hosts are usually 2h - 2.
Smaller subnets improve organization, reduce waste, keep broadcast domains smaller, and make address plans easier to manage.
2. Vocabulary
Search a term below and use the cards as quick study notes.
3. Worked examples
These examples show how students can think through subnetting one step at a time.
/26 means 26 network bits and 6 host bits.
Total addresses: 2^6 = 64
Usable hosts on a normal subnet: 64 - 2 = 62
Subnet mask: 255.255.255.192
Block size in the last octet: 64, so the /26 subnets start at 0, 64, 128, and 192.
/27 gives a block size of 32 in the last octet.
The /27 ranges are 0-31, 32-63, 64-95, 96-127, and so on.
Because 77 falls inside 64-95, the network address is 192.168.10.64/27.
The broadcast address is 192.168.10.95, so the usable range is 192.168.10.65 - 192.168.10.94.
/30 has 2 host bits.
Total addresses: 2^2 = 4
Usable hosts: 2
That is why /30 often appears in older router-link examples.
Start with 10.0.0.0/24.
If you borrow 2 host bits, the new prefix becomes /26.
That creates 2^2 = 4 equal subnets.
Each new subnet has 62 usable hosts on a normal LAN.
4. Tools
Use these calculators to explore concepts, check homework, and build intuition.
Enter any IPv4 address and CIDR prefix to find the network address, broadcast address, usable range, mask, wildcard mask, host counts, and address type.
Convert between a prefix length, subnet mask, and wildcard mask.
Give the tool a required number of hosts and it will suggest the smallest traditional LAN subnet that fits.
Split a larger network into equal-size subnets by count or by target prefix.
Enter a base network and a list of host requirements. The tool sorts the requests largest-first and builds a simple VLSM allocation plan.
See exactly which bits are the network part and which bits are the host part.
Check whether an address is private, public, loopback, link-local, documentation space, multicast, and more.
5. Practice
Generate random questions, check your answers, and then test yourself with multiple-choice review.
Answer all questions, then grade yourself.
6. Cheat sheet
These are some of the most-used IPv4 prefixes students memorize.
| Prefix | Subnet mask | Total addresses | Usable hosts (normal LAN) | Block size |
|---|
This site teaches the most common classroom approach to IPv4 subnetting. Some real-world cases use special rules, especially for /31 and /32.
The calculator explains those special cases when they appear so students can see both the basic rule and the exception.