A network administrator is configuring a dedicated IPv4 subnet for a high-availability database cluster. The cluster requires static IP address assignments for 14 active database nodes, 2 redundant monitoring interfaces, and 1 default gateway router interface. Which subnet mask provides the minimum host capacity required to accommodate all devices while conserving IP address space?
- A255.255.255.240
- 255.255.255.224Cevap
- C255.255.255.192
- D255.255.255.248
Cevap
The subnet mask 255.255.255.224 provides the smallest usable host capacity (30 host addresses) that accommodates the 17 required host IP assignments.
The scenario requires 17 usable IP addresses (14 nodes + 2 monitoring + 1 default gateway). The formula for usable hosts in a subnet is 2^(32 - prefix length) - 2. A /27 subnet mask (255.255.255.224) has 5 host bits, providing 2^5 - 2 = 30 usable host IP addresses, which is the smallest standard IPv4 block capable of holding 17 hosts.
Adım Adım Çözüm
Anahtar Kavram
IPv4 Subnet Mask Capacity and Usable Host Calculation