IPv4 Addresses & CIDR
Read this concept as one more decision made about a packet in flight. The widget below lets you change the inputs and watch the consequence instead of memorising the rule.
Why it matters
An IPv4 address is only useful once you know which part identifies the network and which part selects a host. CIDR makes that split explicit and replaces classful assumptions that wasted address space.
On the wire
A prefix such as 203.0.113.0/24 means the first 24 bits are the network portion and the remaining 8 bits select a host. A router matches destination bits against the prefix mask, and the network and broadcast addresses are reserved within that block.
When it breaks
If two interfaces are configured with overlapping prefixes, a host may send locally what should have gone to a router, and the packet never leaves the link. An address outside the configured prefix is treated as off-link and sent to a default gateway that cannot route back.
Subnet calculator
Borrow host bits: click a subnet, then move an address inside it to see the mask do its work.
4 equal subnets from 203.0.113.0/24
Network and broadcast addresses are reserved
203.0.113.1 & /26 = 203.0.113.0 → on-link with this mask