Find Network for /20
Advanced IdentifyQuestion
Given the IP address 192.168.55.200 with a /20 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given
{
"ip": "192.168.55.200",
"prefix": 20
}
Answer
{
"network": "192.168.48.0",
"broadcast": "192.168.63.255",
"first_host": "192.168.48.1",
"last_host": "192.168.63.254",
"host_count": 4094
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Convert /20 to a subnet mask
20 network bits, 12 host bits. The interesting octet is the third (bits 17–24):
Octet 1: 11111111 = 255
Octet 2: 11111111 = 255
Octet 3: 11110000 = 240 ← 20 − 16 = 4 bits used here
Octet 4: 00000000 = 0
Subnet mask: 255.255.240.0
Step 2: Find the block size in the third octet
Block size = 256 − 240 = 16.
Network boundaries in the third octet (second octet = 168): 0, 16, 32, 48, 64, 80, …
Step 3: Locate 192.168.55.200 in the correct block
Third octet is 55. 55 ÷ 16 = 3.4375 → floor to 3 → block start = 3 × 16 = 48.
The network address is 192.168.48.0.
Binary verification:
IP address: 192.168. 55.200 → 11000000.10101000.00110111.11001000
Subnet mask: 255.255.240. 0 → 11111111.11111111.11110000.00000000
AND ─────────────────────────────────────
Network: 192.168. 48. 0 → 11000000.10101000.00110000.00000000
Third octet: 00110111 AND 11110000 = 00110000 = 48 ✓
Step 4: Broadcast address
The block ends at 48 + 16 − 1 = 63 in the third octet, last octet all 1s:
Network: 192.168.48.0 → ...00110000.00000000
Host = 1: → ...00111111.11111111
Broadcast: 192.168.63.255
Step 5: Calculate the host range
- First host: 192.168.48.1
- Last host: 192.168.63.254
- Usable hosts: 2^12 − 2 = 4,096 − 2 = 4,094
This /20 subnet spans 16 Class C networks (192.168.48.0 through 192.168.63.0). This size is common in enterprise campus allocations and ISP customer blocks.
Summary
| Field | Value |
|---|---|
| Network | 192.168.48.0 |
| Broadcast | 192.168.63.255 |
| First host | 192.168.48.1 |
| Last host | 192.168.63.254 |
| Usable hosts | 4,094 |