Subnet Calculator Technical Overview
Calculate IPv4 network ranges, CIDR prefixes (/0 to /32), subnet masks, ACL wildcard masks, and usable host counts instantly. Includes 22+ pre-calculated CIDR reference tables and CCNA worked examples. Verified against RFC 950, RFC 4632 (CIDR), and RFC 3021 (/31 point-to-point) using unsigned 32-bit bitwise arithmetic.
172.16.45.19/21 Third-Octet CCNA Subnetting Example (Network 172.16.40.0/21)
Prefixes between /17 and /23 split on the third octet rather than the fourth. A /21 block aggregates eight contiguous /24 networks (2,048 total addresses; 2,046 usable hosts), making it popular for campus distribution switches and cloud availability zones.
Calculated IPv4 Parameters for 172.16.45.19/21
32-Bit Binary Bitwise Breakdown
Routers determine the Network Address by performing a bitwise AND between the 32-bit IPv4 address and the 21-bit Subnet Mask, and compute the Broadcast Address by setting the remaining 11 host bits to 1.
How to Solve 172.16.45.19/21 in Under 15 Seconds
For /21, the interesting octet is the 3rd octet (since 16 < 21 <= 24). Five network bits are active in the 3rd octet (128+64+32+16+8 = 248), giving mask 255.255.248.0 and block size 256 - 248 = 8. Multiples of 8 near 45 are 40 and 48, so the subnet spans 172.16.40.0 through 172.16.47.255.
Sample Cisco IOS Interface & Routing Configuration
interface Vlan100 description Campus_Distribution_Block ip address 172.16.40.1 255.255.248.0 no shutdown
Adjacent /21 Subnet Blocks in the Same Octet Boundary
Each /21 block advances by the magic block size of 8 in octet 3. The active block containing 172.16.45.19 is highlighted below.
| Block # | Subnet ID / CIDR | Usable Host Range | Directed Broadcast |
|---|---|---|---|
| #1 | 172.16.0.0/21 | 172.16.0.1 – 172.16.7.254 | 172.16.7.255 |
| #2 | 172.16.8.0/21 | 172.16.8.1 – 172.16.15.254 | 172.16.15.255 |
| #3 | 172.16.16.0/21 | 172.16.16.1 – 172.16.23.254 | 172.16.23.255 |
| #4 | 172.16.24.0/21 | 172.16.24.1 – 172.16.31.254 | 172.16.31.255 |
| #5 | 172.16.32.0/21 | 172.16.32.1 – 172.16.39.254 | 172.16.39.255 |
| #6 Match | 172.16.40.0/21 | 172.16.40.1 – 172.16.47.254 | 172.16.47.255 |
| #7 | 172.16.48.0/21 | 172.16.48.1 – 172.16.55.254 | 172.16.55.255 |
| #8 | 172.16.56.0/21 | 172.16.56.1 – 172.16.63.254 | 172.16.63.255 |
Explore Other Pre-Calculated IPv4 Subnet & CIDR Reference Guides
Jump to another worked CIDR prefix or RFC 1918 enterprise subnet breakdown: