A prefix also determines how many host addresses exist. This lesson ties the formula to the usable column in the subnet table.

highlighted = computed this step

Why host counts fall out

Once the prefix fixes the network bits, the remaining bits count addresses inside the subnet. The usable column in the table is the arithmetic result, not an independent label.

address bits=32\text{address bits}=32

Count the host bits

There are 32 address bits. A /26 leaves 6 host bits.

3226=632 - 26 = 6
Counting usable hostsThe usable column is recomputed for every subnet row.Usable hosts/24 split to /26networkfirst hostlast hostbroadcastusable192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562

Total minus reserved

6 host bits make 64 addresses. 2 cannot be assigned to hosts — the network address, host bits all 0, and the broadcast address, host bits all 1 — leaving 62 usable per row.

642=6264 - 2 = 62
Counting usable hostsThe usable column is recomputed for every subnet row.Usable hosts/24 split to /26networkfirst hostlast hostbroadcastusable192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562

Decode it again

For /24, the host side has 8 bits. That gives 256 addresses and 254 usable hosts.

2562=254256 - 2 = 254
Counting usable hostsThe usable column is recomputed for every subnet row.Usable hosts/24 split to /26networkfirst hostlast hostbroadcastusable192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562

Summary

Host counts come from the number of host bits: total addresses minus the 2 reserved endpoints, the network and broadcast addresses. Address arithmetic only; timing/throughput is not modeled here.

usable=62\text{usable}=62
Counting usable hostsThe usable column is recomputed for every subnet row.Usable hosts/24 split to /26networkfirst hostlast hostbroadcastusable192.168.1.0/26192.168.1.1192.168.1.62192.168.1.6362192.168.1.64/26192.168.1.65192.168.1.126192.168.1.12762192.168.1.128/26192.168.1.129192.168.1.190192.168.1.19162192.168.1.192/26192.168.1.193192.168.1.254192.168.1.25562