CIDR Route Aggregation and Overlap Detection
Combine aligned neighboring blocks
Route aggregation represents multiple destination prefixes with a shorter prefix. The two halves 192.0.2.0/25 and 192.0.2.128/25 exactly cover 192.0.2.0/24. Their first 24 bits match and their ranges touch without gaps. An aggregate can reduce routing entries, but address coverage alone does not establish a safe routing policy.
192.0.2.0/25 .0–.127192.0.2.128/25 .128–.255Exact union: 192.0.2.0/24Adjacency is not sufficient
192.0.2.64/26 and 192.0.2.128/26 touch but cannot form a single /25: .64 is not aligned to a 128-address boundary. The smallest covering single prefix is /24, which includes addresses outside the two blocks. Likewise, a gap between ranges prevents exact aggregation. For two equal blocks, require consecutive ranges and alignment of the first start to twice the block size.
Detect overlapping allocations
Two inclusive ranges overlap if the start of each is no later than the end of the other. 192.0.2.64/26 covers .64–.127 and 192.0.2.96/27 covers .96–.127; these overlap. Distinct LAN allocations in the same address domain should not overlap. Intentional overlapping routes, however, are normal when a specific route refines a larger prefix.
Longest prefix match and policy
In ordinary destination-based forwarding with the following installed routes, .140 matches both /24 and /25; the /25 wins because it is more specific. .40 matches only the /24. Before summarizing, check forwarding reachability, policy, failure handling and return paths. Do not advertise documentation prefixes or use a summary to claim reachability to unallocated addresses. The table is a fictional model, not configuration.
192.0.2.0/24 via A192.0.2.128/25 via B192.0.2.140 -> B192.0.2.40 -> APractice
Decide whether 203.0.113.0/26 and 203.0.113.64/26 merge exactly. Then compare 203.0.113.64/26 with 203.0.113.96/27 for overlap. Explain why an exact mathematical merge still requires a policy check.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Route aggregation and overlap — knowledge check
Apply subnetting concepts to fictional offline scenarios.
What exactly combines 203.0.113.0/26 and 203.0.113.64/26?
Can 192.0.2.64/26 and 192.0.2.128/26 form one exact /25?
Which allocation overlaps 192.0.2.64/26?
Installed routes are 192.0.2.0/24 via A and 192.0.2.128/25 via B. Where does destination 192.0.2.200 go under longest-prefix matching?
What must be checked before announcing a mathematically exact route summary?