Calculate Host Range for /26
Intermediate IdentifyQuestion
Given the IP address 192.168.10.67 with a /26 prefix length, identify the network address, broadcast address, first usable host, last usable host, and total number of usable hosts.
Given
{
"ip": "192.168.10.67",
"prefix": 26
}
Answer
{
"network": "192.168.10.64",
"broadcast": "192.168.10.127",
"first_host": "192.168.10.65",
"last_host": "192.168.10.126",
"host_count": 62
}
Try to solve it first, then click Reveal Answer
Step-by-Step Explanation
Step 1: Convert /26 to a subnet mask
26 network bits, 6 host bits:
Binary: 11111111.11111111.11111111.11000000
Decimal: 255 .255 .255 .192
Step 2: Find the block size
Block size in the last octet = 256 − 192 = 64.
Network boundaries in the last octet: 0, 64, 128, 192.
Step 3: Locate 192.168.10.67 in the correct block
| Block | Range |
|---|---|
| 192.168.10.0/26 | .0 − .63 |
| 192.168.10.64/26 | .64 − .127 |
| 192.168.10.128/26 | .128 − .191 |
| 192.168.10.192/26 | .192 − .255 |
67 falls in the .64 block.
Binary verification:
IP address: 192.168. 10. 67 → 11000000.10101000.00001010.01000011
Subnet mask: 255.255.255.192 → 11111111.11111111.11111111.11000000
AND ─────────────────────────────────────
Network: 192.168. 10. 64 → 11000000.10101000.00001010.01000000
Step 4: Find the broadcast address
Set the 6 host bits to 1:
Network: 192.168.10.64 → ...01000000
Host = 1: → ...01111111
Broadcast: 192.168.10.127
Step 5: Calculate the host range
- First host: 192.168.10.65
- Last host: 192.168.10.126
- Usable hosts: 2^6 − 2 = 64 − 2 = 62
Summary
| Field | Value |
|---|---|
| Network | 192.168.10.64 |
| Broadcast | 192.168.10.127 |
| First host | 192.168.10.65 |
| Last host | 192.168.10.126 |
| Usable hosts | 62 |