Huawei Certified ICT Associate – Data Center Network (HCIA-DCN) — Question 117

A company applies for a class C IP address for subnetting. It has six branches and the largest branch should have 26 hosts. What would be an appropriate subnet mask for the largest branch?

Answer options

Correct answer: A

Explanation

The correct answer is A, 255.255.255.128, as it provides 128 IP addresses, allowing for up to 126 usable hosts, which accommodates the requirement for 26 hosts comfortably. Option B, 255.255.255.224, allows for only 30 usable hosts and is insufficient for the largest branch's needs. Options C and D provide even more addresses than required, thus they are not optimal in this scenario.