A network administrator is designing a dedicated VLAN for a warehouse automation system that requires static IPv4 addresses for smart sensor nodes. To conserve network address space, the administrator must select the smallest possible CIDR subnet prefix that accommodates all required host nodes. Which prefix length should be configured for this subnet?
- /27Answer
- B/28
- C/26
- D/29
Answer
The prefix /27 is the correct choice because it provides 30 usable host IP addresses, satisfying the 15-node requirement while minimizing wasted address space.
To calculate usable IPv4 addresses, the formula must be used, where is the number of host bits. For devices, a /28 mask provides total addresses, but only usable host addresses, which is insufficient. Moving to a /27 mask provides host bits, yielding usable host addresses. This is the smallest prefix length that satisfies the requirement of 15 hosts.
Step-by-Step Solution
Key Concept
Subnet Usable Host Calculation