A network engineer is designing a small branch office and needs to select a subnet mask that provides exactly 62 usable host addresses for a single VLAN. Which CIDR notation should the engineer apply to the network prefix?
Trap 1: /25
A /25 prefix uses 7 bits for hosts, resulting in 2 to the 7th power, which is 128 total addresses. After subtracting the network and broadcast addresses, 126 usable host addresses remain. While this would fit the 62 required hosts, it wastes a significant amount of address space, making it an inefficient choice for this design.
Trap 2: /27
A /27 prefix leaves only 5 bits for the host portion. Calculating 2 to the 5th power results in 32 total addresses. After reserving the network and broadcast addresses, only 30 usable host addresses are available. This is insufficient for the requirement of 62 hosts, meaning some devices would be unable to connect to the network.
Trap 3: /24
A /24 prefix is a standard Class C mask that provides 8 host bits. This results in 256 total addresses and 254 usable host addresses. Using a /24 for a requirement of only 62 hosts is highly inefficient and leads to the exhaustion of available IP address space in larger enterprise network architectures.
- A
/25
Why it fails: A /25 prefix uses 7 bits for hosts, resulting in 2 to the 7th power, which is 128 total addresses. After subtracting the network and broadcast addresses, 126 usable host addresses remain. While this would fit the 62 required hosts, it wastes a significant amount of address space, making it an inefficient choice for this design.
- B
/26
A /26 prefix uses 6 bits for the host portion of the address. Calculating 2 to the 6th power gives 64 total addresses. Subtracting the network address and the broadcast address leaves exactly 62 usable host addresses. This perfectly matches the requirement, making it the most efficient subnet mask for the specified branch office VLAN.
- C
/27
Why it fails: A /27 prefix leaves only 5 bits for the host portion. Calculating 2 to the 5th power results in 32 total addresses. After reserving the network and broadcast addresses, only 30 usable host addresses are available. This is insufficient for the requirement of 62 hosts, meaning some devices would be unable to connect to the network.
- D
/24
Why it fails: A /24 prefix is a standard Class C mask that provides 8 host bits. This results in 256 total addresses and 254 usable host addresses. Using a /24 for a requirement of only 62 hosts is highly inefficient and leads to the exhaustion of available IP address space in larger enterprise network architectures.