A subnet is defined as 192.168.10.0/26. How many addresses in it can actually be assigned to hosts?
LPIC-1 Exam 102-500, objective 109. Networking fundamentals medium
Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.
Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.
How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.
The options
Not correct 64
Wrong. 64 is the total size of the block (2^(32-26) = 64 addresses), but the first address is the network address and the last is the broadcast address, so two of the 64 are not assignable.
Not correct 30
Wrong. 30 usable hosts is what a /27 gives you (32 addresses minus network and broadcast).
Not correct 126
Wrong. 126 usable hosts is a /25 (128 addresses minus two).
Correct 62
Correct. A /26 leaves 6 host bits, so 2^6 = 64 addresses; subtracting the network address (192.168.10.0) and the broadcast address (192.168.10.63) leaves 62 assignable host addresses.
Why
For an IPv4 subnet with a prefix length of n, the block holds 2^(32-n) addresses and 2^(32-n) - 2 of them are usable by hosts, because the all-zeros host part is the network address and the all-ones host part is the broadcast address. /26 -> 64 total, 62 usable. The two special addresses are why a /30 gives only 2 usable addresses, which is the classic point-to-point link size.
Where this comes from
- Cited
- LPI exam objective 109.1
- What it says
- Understand network masks and CIDR notation, and how they determine the size of a subnet.
Practise this
Reading one question is not practice. The trainer will draw a short set from objective 109 and space the ones you get wrong.
More questions on this objective
- A host is configured with the address 172.20.35.77/20. What is the network address of its subnet? machine-checked
- In IPv6, which address is the loopback address, equivalent in role to 127.0.0.1 in IPv4? machine-checked
- Which is the correct fully compressed form of the IPv6 address 2001:0db8:0000:0000:0000:ff00:0042:8329? machine-checked
- Which pairing of a service with its default port number is correct? machine-checked
- DNS normally uses UDP port 53. In which situation does a DNS client or server fall back to TCP on port 53? machine-checked
- Which file on a Linux system maps service names such as ssh, smtp and http to their port numbers and transport protocols? machine-checked