IP fundamentals
How to identify overlapping CIDR networks
CIDR prefixes define aligned intervals. Two networks of the same family are either disjoint or one contains the other, including equality.
Updated
In this guide
Canonicalize both inputs
192.0.2.37/27 normalizes to 192.0.2.32/27. Its endpoints are .32 and .63, so comparing only the typed starting address gives the wrong result.
Compare ranges
192.0.2.0/24 contains that /27. By contrast, 192.0.2.64/26 begins at .64 and does not overlap the /27. The intersection is empty even though the endpoints are adjacent.
Why overlaps matter
Overlapping local and remote network ranges can cause a VPN client to send traffic to the wrong interface. Longest-prefix routing may hide part of a larger network. Renumber or design explicit routes with the administrator.
Read the interval
192.0.2.0/25 spans .0 through .127, while 192.0.2.64/26 spans .64 through .127. The smaller network is entirely contained in the larger. An overlap is not necessarily an error in routing, but it is often a problem when two separate LANs need unique host space.
Step-by-step example
Check whether 192.0.2.0/25 and 192.0.2.64/26 can be allocated independently.
- 01
Normalize both prefixes
Find the inclusive range for each network. If an input contains host bits, use the canonical network address before comparing.
- Network A
- 192.0.2.0–.127
- Network B
- 192.0.2.64–.127
Illustration · example, not a live result - 02
Compare the intervals
Take the larger start and smaller end. Here that gives .64 through .127, so B is entirely inside A. Do not allocate both as separate non-overlapping LANs.
.0.63.127A: 192.0.2.0/25B: 192.0.2.64/26Intersection: .64–.127- Maximum start
- .64
- Minimum end
- .127
- Intersection
- 64 addresses
Illustration · example, not a live result - 03
Choose a separate block
Try 192.0.2.128/26 as B. It begins after .127 and has no common address with A. Use CIDR Overlap Checker to verify the relationship.
- A ends
- .127
- New B begins
- .128
- Result
- Disjoint
Illustration · example, not a live result
Check your understanding
Compare only addresses of the same family. Adjacent ranges are not overlapping.
Try this tool →Record your own progress on this browser. No account required.
Try this
Check .0/24 against .32/27, then replace the parent with .64/26.
CIDR overlap checker →