- Network
- 192.168.1.0/24
- Subnet mask
- 255.255.255.0
- Wildcard mask
- 0.0.0.255
- First usable host
- 192.168.1.1
- Last usable host
- 192.168.1.254
- Broadcast
- 192.168.1.255
- Total addresses
- 256
- Usable hosts
- 254
Quick reference
Usable hosts = 2^(32 − prefix) − 2. Learn these common sizes for the exam.
| Prefix | Mask | Usable hosts |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /28 | 255.255.255.240 | 14 |
| /29 | 255.255.255.248 | 6 |
| /30 | 255.255.255.252 | 2 |
Learning to subnet by hand?
Work it out with the block-size method in how to subnet: CIDR, masks and usable hosts, then check your answers here. The OSI model cheat sheet and common ports list cover the other Network+ basics.
Common questions
How many usable hosts are in a /24?
254. A /24 has 256 addresses (mask 255.255.255.0). The first is the network address and the last is the broadcast address, so 254 can be given to devices.
Why do you subtract 2 from the number of hosts?
In each subnet the first address identifies the network and the last is the broadcast address. Neither can be assigned to a device, so usable hosts = 2 to the power of the host bits, minus 2.
What is a /30 used for?
A /30 has 4 addresses and 2 usable hosts, which is exactly enough for a point-to-point link between two routers.
What are the private IPv4 address ranges?
10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. They're used inside home and company networks and aren't routed on the public internet.
What does a 169.254.x.x address mean?
It's an APIPA (link-local) address. A device gives itself one when it can't get an address from a DHCP server, so it usually points to a DHCP or connection problem.