Practice your subnetting skills and gain mastery over the network address space.
A standard Class "C" IPv4 network is defined by a default mask of 255.255.255.0 or the CIDR notation /24. Subnetting involves borrowing host bits (from the 4th octet) to create subnets.
| CIDR | Subnet Mask | Borrowed Bits (n) | # of Subnets ($2^n$) | Host Bits (h) | Usable Hosts ($2^h - 2$) | Block Size |
|---|---|---|---|---|---|---|
| /25 | 255.255.255.128 | 1 | 2 | 7 | 126 | 128 |
| /26 | 255.255.255.192 | 2 | 4 | 6 | 62 | 64 |
| /27 | 255.255.255.224 | 3 | 8 | 5 | 30 | 32 |
| /28 | 255.255.255.240 | 4 | 16 | 4 | 14 | 16 |
Key Addresses: For any subnet, the Network Address is the first address (all host bits 0) and the Broadcast Address is the last address (all host bits 1). Usable host addresses are those between the Network and Broadcast addresses.
Network Address: 192.168.1.0
Required CIDR: /26
Focus on the borrowed bits ($n$) to find the block size ($2^{8-n}$).