A network administrator needs to assign an IPv4 subnet for a database cluster requiring static IP addresses for physical node interfaces, virtual load balancer IP addresses, and redundant default gateway interfaces. Which CIDR prefix length represents the smallest subnet mask that will accommodate all required host addresses?
- /25Answer
- B/26
- C/24
- D/27
Answer
The smallest subnet mask in CIDR notation that accommodates all required addresses is /25.
The scenario requires allocating 114 usable IP addresses (). A /25 subnet allocates 7 host bits, giving total IP addresses. Subtracting 2 for the network ID and broadcast address results in 126 usable host IP addresses. This satisfies the 114 required addresses while using the smallest possible subnet block.
Step-by-Step Solution
Key Concept
Calculating usable IPv4 host capacity and determining optimal CIDR subnet mask allocation.
Estimated Time:1m 30s