If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is __________. <i>(answer in integer)</i>
4094
Step-by-Step Solution
Insight: The subnet mask determines the number of host bits; usable IPs are always to exclude network and broadcast addresses.
Exam route:
- Mask 255.255.240.0 in binary: 11111111.11111111.11110000.00000000.
- Number of 1s = 20, so it's a /20 mask.
- Host bits .
- Total addresses = .
- Usable addresses = .
Learning route:
A subnet mask separates the IP address into network and host portions. The contiguous 1s represent the network prefix, and the 0s represent the host identifier.
For 255.255.240.0, the third octet 240 is 11110000 in binary. Counting all 1s across the 32 bits gives 20. This means 20 bits are for the network, leaving 12 bits for hosts.
The total number of addresses in this block is . However, two addresses are reserved: the first address (all host bits 0) is the network address, and the last address (all host bits 1) is the directed broadcast address.
Therefore, the maximum number of IP addresses that can be assigned to network interfaces is .