Lab
Subnetting lab
An address and a prefix in binary: network, broadcast, hosts, and splitting a block into equal subnets.
An address and its prefix
For example 192.168.10.77/26
Try
In binary
26 network bits, 6 host bits
Address 192.168.10.77
11000000101010000000101001001101
Mask 255.255.255.192
11111111111111111111111111000000
Network address 192.168.10.64 (address AND mask)
11000000101010000000101001000000
Green bits name the network and stay the same for every host in it. The grey bits name the host.
The block
Class C, default /24
- Network address
- 192.168.10.64
- Broadcast address
- 192.168.10.127
- First usable host
- 192.168.10.65
- Last usable host
- 192.168.10.126
- Subnet mask
- 255.255.255.192
- Wildcard mask
- 0.0.0.63
- Addresses in the block
- 64
- Usable hosts
- 62
Split into equal subnets
Borrow bits from the host part
4 subnets of /28, each with 14 usable hosts.
| Subnet | Network | Usable range | Broadcast |
|---|---|---|---|
| 1 | 192.168.10.64/28 | 192.168.10.65 – 192.168.10.78 | 192.168.10.79 |
| 2 | 192.168.10.80/28 | 192.168.10.81 – 192.168.10.94 | 192.168.10.95 |
| 3 | 192.168.10.96/28 | 192.168.10.97 – 192.168.10.110 | 192.168.10.111 |
| 4 | 192.168.10.112/28 | 192.168.10.113 – 192.168.10.126 | 192.168.10.127 |
How big a subnet do I need?
Hosts in, prefix out
The smallest block is a /26: 64 addresses, of which 62 are usable. Two addresses are always set aside, the network address and the broadcast address.