100-150 CCST ยท IP addressing and subnetting
Subnet calculations
Finding the network address, broadcast address, usable host range and host count for a given address and prefix.
Key points
- Block size = 256 minus the interesting mask octet (for /26, 256 - 192 = 64).
- The network address is the nearest multiple of the block size at or below the host; the broadcast address is the last address before the next block; usable hosts run from network + 1 to broadcast - 1.
- Usable hosts = 2^h - 2, where h is the number of host bits.
- Example: 192.168.10.77/26 -> network 192.168.10.64, broadcast 192.168.10.127, hosts .65 to .126.
Practice questions
What is the network address of 192.168.10.77/26?
- 192.168.10.0
- 192.168.10.64
- 192.168.10.76
- 192.168.10.128
Show answer
Answer: B. 192.168.10.64
A /26 has a block size of 64, so blocks start at 0, 64, 128, 192. 77 falls in the block starting at 64.
Which statements are true for the host 192.168.1.130/25?
- The network address is 192.168.1.128
- The broadcast address is 192.168.1.255
- The subnet has 126 usable host addresses
- The first usable host address is 192.168.1.130
- The mask is 255.255.255.192
Show answer
Answer: A. The network address is 192.168.1.128, B. The broadcast address is 192.168.1.255, C. The subnet has 126 usable host addresses
/25 splits the last octet at 128: network 192.168.1.128, broadcast 192.168.1.255, 126 usable hosts. The first usable host is .129, not .130, and the mask ends in 128, not 192.
True or false: in a /30 subnet all four addresses can be assigned to hosts.
Show answer
Answer: False
False. One address is the network address and one is the broadcast address, leaving 2 usable hosts, which is why /30 suits point-to-point links.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
