Core Networking · Study deck
Subnetting and CIDR for IoT Networks
Picture a school adding thirty air sensors beside cameras, printers, and staff laptops.
Packet Pete is your guide for this deck.

After studying this chapter
Learning objectives
You will be able to:
- Explain: A /24 suits a floor LAN, a /26 a camera group, a /28 a small cluster, and a /30 exists for a router-to-router link where only two addresses are ever needed.
- Explain: The next row shows the cut, and the pieces are deliberately unequal: the two largest device groups take a quarter of the block each, while the smallest take a sixteenth.
- Explain: The installer must know which devices should speak directly, which must cross a checked boundary, and how many spare places the next term will need.
- Size CIDR prefixes from counted address demand
Major section
Start With the Boundary Line
Giving every device an address is not enough.
- The installer must know which devices should speak directly, which must cross a checked boundary, and how many spare places the next term will need.
- A subnet is a group of addresses treated as one local area.
- This example does not replace address arithmetic or policy design.
Major section
Start With the Boundary Line (continued)
The arithmetic matters because the deployment will inherit every boundary the design creates.
- A gateway is the device that carries traffic from that area toward another one.
- The deeper sections show how prefixes, host counts, route summaries, address assignment, and security rules make the boundary reviewable.
- Subnetting is the moment an address becomes a design decision.
Major section
Overview: A Subnet Is an Address Boundary
Addresses with the same reviewed prefix are treated as local; other destinations use the configured gateway.
- That relationship connects the arithmetic to broadcast scope, routing policy, DHCP capacity, and the failure clues a deployment will expose.
Major section
Practitioner: Build the Subnet Plan From Inventory
Four device families run across the table.
- Cameras and HVAC take a /26 each, while access and environmental take a /27, which is half the size.
- The bottom row shows why this holds up in operations.
Major section
Under the Hood: Prefix Bits Define the Address Budget
The prefixes run from /24 to /30 across the table.
- Under each one is the usable host count, and it halves at every step: 254, then 126, 62, 30, 14, and finally 2.
- The bottom row gives each size a job.
- Everything below is spent from that one total.
Major section
Under the Hood: Prefix Bits Define the Address Budget (continued)
A /24 suits a floor LAN, a /26 a camera group, a /28 a small cluster, and a /30 exists for a router-to-router link where only two addresses are ever needed.
- The next row shows the cut, and the pieces are deliberately unequal: the two largest device groups take a quarter of the block each, while the smallest take a sixteenth.
- Prefix length is chosen from the device count, not from a habit of splitting evenly.
- A block allocated with no spare is a block that will be renumbered later.
Major section
Divide a Building by Device Population
A school has 50 cameras, 20 room sensors, and 10 door controllers.
- A /26 leaves 6 host bits, so it contains 26=64 addresses and normally 62 usable IPv4 host addresses.
- The 20 room sensors need a /27: 25=32 total and 30 usable.
- The valid network start covering 80 is 64.
Major section
Divide a Building by Device Population (continued)
The 10 controllers fit a /28: 24=16 total and 14 usable.
- Those three allocations consume 112 address slots while preserving a clear subnet boundary for each device family.
- A camera should not receive the broadcast address, and a controller should not collide with the router.
- Its addresses run from 10.20.0.0 through 10.20.0.63.
- Routing and firewall policy still decide which device families may exchange unicast traffic.
Major section
Summary
CIDR prefix length determines how many host bits remain and therefore how many addresses are available.
- A subnet plan should count endpoints, gateways, infrastructure, DHCP reservations, static addresses, and spare capacity.
- VLSM lets different IoT zones use different subnet sizes when device counts and growth records differ.
- A defensible subnet design includes route summaries, gateway placement, security policy, monitoring scope, and recheck triggers.
Deck summary
Key takeaways
Giving every device an address is not enough.
- The arithmetic matters because the deployment will inherit every boundary the design creates.
- Addresses with the same reviewed prefix are treated as local; other destinations use the configured gateway.
- Four device families run across the table.
- The prefixes run from /24 to /30 across the table.
Retrieval practice
Recall check 1 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q1Why is subnetting useful in an IoT deployment beyond simply creating more address ranges?
Show answer
Answer: D Subnetting connects address math to operational boundaries: security zones, broadcast domains, routing, ownership, and troubleshooting.
Retrieval practice
Recall check 2 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q2A site has 180 sensors, 12 infrastructure addresses, 8 reserved maintenance addresses, and a documented need for 40 spare addresses. Which review step matters before choosing a prefix?
Show answer
Answer: A Subnet sizing should include every address consumer and the documented spare capacity, not just the endpoint device count.
Retrieval practice
Recall check 3 of 3

Packet Pete says: answer from memory, then check your reasoning.
Q3For an ordinary IPv4 host subnet using /26, why are there 62 usable host addresses?
Show answer
Answer: A CIDR host capacity comes from the number of host bits left by the prefix, with ordinary IPv4 host subnets reserving network and broadcast addresses.
Print reference
Answers
Answer key.
- D · Subnetting connects address math to operational boundaries: security zones, broadcast domains, routing, ownership, and troubleshooting.
- A · Subnet sizing should include every address consumer and the documented spare capacity, not just the endpoint device count.
- A · CIDR host capacity comes from the number of host bits left by the prefix, with ordinary IPv4 host subnets reserving network and broadcast addresses.