Subnetting with the block method, and CIDR (prefix) notation
Sign in to read this lesson
Instead of binary you can think in "blocks". 8 host bits are a block of 256. Split it in 2 and you get blocks of 128; split it in 4 and you get blocks of 64. The network addresses are the start of each block, the broadcast is the last address of each block, and the last octet of the subnet mask is 256 − block size. Originally there were only three classful masks (A, B, C). When the Internet grew fast in the 90s, this wasted addresses. The solution was CIDR (Classless Inter-Domain Routing): any subnet mask can be used, written as a number of bits (/24, /26).
What you will learn
- The block method: 8 host bits = a block of 256. 2 subnets → 2 × 128, 4 subnets → 4 × 64. Every host bit left doubles the size of the subnet; every borrowed bit doubles the number of subnets.
- Subnet mask = 256 − block size: 256 − 128 = 128 (255.255.255.128), 256 − 64 = 192 (255.255.255.192).
- The network address is the first address of a block and the broadcast the last. The first host comes after the network, the last host before the broadcast.
- Classful networks had only 3 masks: A 255.0.0.0 (16,777,216 addresses), B 255.255.0.0 (65,536), C 255.255.255.0 (256). This wasted addresses.
- CIDR (Classless Inter-Domain Routing): any mask can be used, written as a prefix: 192.168.1.0 255.255.255.0 = 192.168.1.0 /24, 172.16.1.64 255.255.255.192 = 172.16.1.64 /26.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.