01Chapter 1: What an IPv4 address isAn IPv4 address is a 32-bit number that identifies a network interface at the IP layer. Every subnetting calculation in this tutorial is arithmetic on that number. Dotted-decimal notation is the human-readable way to write it. This chapter fixes the vocabulary and the mental model that the remaining6 min read
02Chapter 2: Reading addresses in binaryAn IPv4 address is a 32-bit number, and every subnetting operation works on those bits. This chapter assumes you know what an IP address and a network are, and that you can count in binary. It covers how to convert each octet quickly and reliably, how to recognize mask patterns, and where conversion5 min read
03Chapter 3: Network bits and host bitsThis chapter assumes you can convert values from 0 to 255 between binary and decimal, and that you know an IPv4 address is 32 bits written as four octets. You do not need to know about masks or CIDR yet. Later chapters formalize both. Here you learn the idea they rest on: every IPv4 address is divid5 min read
04Chapter 4: Why classful addressing was replacedThis chapter assumes you can convert between binary and decimal for values 0 to 255, and that you know an IPv4 address has 32 bits split into a network part and a host part. It explains the system that CIDR replaced, why that system failed, and which of its habits still show up in practice.5 min read
05Chapter 5: CIDR notation and prefix lengthThis chapter assumes you can convert values from 0 to 255 between binary and decimal. It also assumes you know that an IPv4 address has 32 bits, written as four octets, and that those bits split into a network part and a host part. The chapter covers how CIDR writes that split as a single number and6 min read
06Chapter 6: Subnet masks and the bitwise ANDThis chapter assumes you can convert values from 0 to 255 between binary and decimal. It also assumes you know that an IPv4 address splits into a network part and a host part, and that CIDR writes the split as a prefix length such as /20. Here you will see how a device uses that prefix length: it 6 min read
07Chapter 7: Network address, broadcast address, and usable hostsEvery IPv4 subnet reserves two addresses for itself: the first and the last. This chapter shows how to find those two addresses for any prefix, and how to count the addresses left for devices. It assumes you can convert numbers from 0 to 255 between binary and decimal, and that you know a CIDR prefi5 min read
08Chapter 8: Block size and subnet boundariesThis chapter assumes you can write the prefix length as a dotted-decimal mask, and that you know the network address is the first address of a subnet and the broadcast address is the last. Here you will turn that into a fast method. You find a subnet's block size from its mask, list the subnet bound6 min read
09Chapter 9: Splitting a network into equal subnetsThis chapter assumes you can convert between binary and decimal for values 0 to 255. It also assumes you can read CIDR prefix lengths such as /24 and calculate network address, broadcast address, and usable hosts for a prefix. Here you use those skills to cut one address block into several same-size6 min read
10Chapter 10: Variable-length subnet maskingEarlier chapters divided one block into equal subnets. Real networks rarely need equal subnets. A office LAN may need 100 hosts, a server segment 50, and a router-to-router link only 2. Variable-length subnet masking (VLSM) lets you give each subnet the prefix length it needs and no more.6 min read
11Chapter 11: Special prefixes and reserved rangesThis chapter assumes you can find the network address, broadcast address, and usable host range of a CIDR block. It also assumes you know that usable hosts equal 2^h − 2 for h host bits. Some prefix lengths and address ranges break those rules or carry a fixed meaning. This chapter covers them.5 min read
12Chapter 12: Summarizing routesRoute summarization (also called supernetting or route aggregation) replaces several contiguous routes with one shorter-prefix route that covers all of them. This chapter assumes you can convert between binary and decimal, read CIDR prefixes, and compute block sizes and network addresses from the ea5 min read
13Chapter 13: Longest-prefix match in routingThis chapter assumes you can compute a network address and broadcast address from a prefix length (for example, 10.1.4.128/25 covers 10.1.4.128 to 10.1.4.255). It also assumes you know what a routing table is: a list of destination prefixes, each paired with a next hop or exit interface. Here you wi6 min read
14Chapter 14: Checking your work with PythonHand calculations are easy to get wrong by one bit or one block. This chapter shows how to use Python's standard ipaddress module to check them. It also shows how to turn a checked method into a repeatable test.5 min read