192.168.10.77/26
Mask 255.255.255.192. It stops being 255 in the fourth octet, so the block size is 64.
- Network
- 192.168.10.64
- Broadcast
- 192.168.10.127
- Hosts
- 192.168.10.65 to 192.168.10.126
- Usable
- 62
Subnetting is the math part of Network+: given an address and a prefix, find the network address, the broadcast address, the usable range and how many hosts fit. The method comes first, with three worked problems after it. Then there's a drill with as many problems as you want, and a CIDR chart to check yourself against.
Mask 255.255.255.192. It stops being 255 in the fourth octet, so the block size is 64.
Mask 255.255.248.0. It stops being 255 in the third octet, so the block size is 8.
Mask 255.255.255.252. It stops being 255 in the fourth octet, so the block size is 4.
You get a host address and a prefix. Work out the network address, the broadcast address, the first and last usable hosts and how many hosts fit, then check. Every problem is new, and they never run out.
Each step down halves the block. Usable hosts are the addresses in the block less two, the network address and the broadcast address.
| Prefix | Subnet mask | Addresses | Usable hosts |
|---|---|---|---|
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 512 | 510 |
| /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 |
Two prefixes work differently. A /31 has two addresses and both are usable on a point-to-point link (RFC 3021), and a /32 is a single host, such as a loopback interface.
Classful addressing is history, since CIDR replaced it, but the exam still expects you to know the classes by their first octet. 127 belongs to no class: it is loopback.
| Class | First octet | Default mask |
|---|---|---|
| A | 1 to 126 | 255.0.0.0 (/8) |
| B | 128 to 191 | 255.255.0.0 (/16) |
| C | 192 to 223 | 255.255.255.0 (/24) |
| D | 224 to 239 | Multicast, no mask |
| E | 240 to 255 | Experimental, no mask |
IPv4 addressing is objective 1.7, and Domain 1 is free in NetPlus Mastery, lessons and quizzes included.
Keep studying: the free practice test, the ports list, PBQ practice, and the full course.