Subnet Overlap Checker (Two CIDRs)

Check if two CIDR blocks overlap

The Subnet Overlap Checker determines whether two CIDR blocks share any common IP addresses. Enter two subnets like 192.168.0.0/23 and 192.168.1.0/24 to instantly find out if they overlap, what the overlapping range is, and whether one contains the other -- essential for preventing routing conflicts and IP address collisions.

Understanding Subnet Overlap

Overlapping subnets are one of the most common and disruptive mistakes in network design. When two subnets share even a single IP address, routers have two valid paths for traffic destined to that address. The result depends on which route the router selects, and that selection can change unpredictably based on routing protocol metrics, prefix lengths, and administrative distances. From the user's perspective, the symptom is usually intermittent connectivity -- devices work sometimes but not always, and the problem seems to move around.

The most frequent cause of overlap is poor coordination during address planning. One team allocates 10.0.0.0/16 for a data center, while another team independently assigns 10.0.1.0/24 to a branch office VPN. Since the /24 is entirely within the /16, there is a containment relationship -- the most common form of overlap with CIDR blocks. Less commonly, overlap happens during mergers and acquisitions when two organizations with independently chosen RFC 1918 address plans need to connect their networks. Both might use the 10.0.0.0/8 space, and the resulting conflicts can take months to resolve through renumbering.

Detecting overlap before it reaches production is far easier than diagnosing it after the fact. VPN tunnels that fail silently, cloud VPC peering requests that are rejected, and routing asymmetry that only appears under load are all symptoms of overlapping subnets. This tool gives you a quick answer: do these two blocks share any addresses, and if so, which ones?

How to Check if Two Subnets Overlap

  1. Enter the first CIDR block in the Subnet A field (e.g., 10.0.0.0/16).
  2. Enter the second CIDR block in the Subnet B field (e.g., 10.0.128.0/17).
  3. The tool reports whether the subnets overlap, the nature of the overlap, and the specific overlapping address range.

Subnet Overlap Examples

Subnet ASubnet BOverlap?Details
192.168.1.0/24192.168.2.0/24NoCompletely separate, adjacent subnets
192.168.0.0/23192.168.1.0/24YesA contains B entirely
10.0.0.0/1610.0.0.0/16YesIdentical subnets
172.16.0.0/12172.20.0.0/24YesA contains B
10.1.0.0/1610.2.0.0/16NoDifferent /16 blocks
192.168.0.0/22192.168.3.0/24YesA contains B (B is the last /24 in A)

Understanding overlap types

Overlap between two CIDR blocks falls into one of four categories:

  • No overlap -- the subnets share zero addresses and can safely coexist in the same routing domain.
  • Containment -- one subnet is entirely within the other (e.g., 10.0.0.0/8 and 10.1.0.0/16).
  • Identical -- both CIDR blocks describe exactly the same range of addresses.
  • Partial overlap -- the subnets share some but not all addresses. Note that with properly aligned CIDR blocks, partial overlap without containment is not possible; it only occurs with non-standard or misaligned allocations.

When to Use the Subnet Overlap Checker

  • New subnet allocation -- before deploying a new subnet on your network, verify it does not overlap with any existing allocations.
  • VPN tunnel planning -- overlapping subnets between a VPN client's local network and the remote network make routing impossible for the conflicting range.
  • Cloud VPC peering -- AWS, Azure, and GCP all reject VPC peering connections when the CIDR ranges overlap.
  • Network mergers and acquisitions -- when connecting two company networks, overlapping address space must be identified and renumbered.
  • Multi-site routing -- verify that branch office allocations do not conflict with headquarters or data center subnets.

How Subnet Overlap Detection Works

Two CIDR blocks overlap when their address ranges intersect. The algorithm converts each CIDR to its start address (network address) and end address (broadcast address), then checks if the ranges intersect:

Subnet A: 192.168.0.0/23
  Start: 192.168.0.0
  End:   192.168.1.255

Subnet B: 192.168.1.0/24
  Start: 192.168.1.0
  End:   192.168.1.255

Overlap exists because:
  A.start (192.168.0.0) <= B.end (192.168.1.255)
  AND
  B.start (192.168.1.0) <= A.end (192.168.1.255)

Overlapping range: 192.168.1.0 - 192.168.1.255 (256 addresses)

Why overlapping subnets break networks

When two subnets overlap, a router receiving a packet for an address in the overlapping range has two valid routes. Depending on the routing protocol and prefix length, traffic may be sent to the wrong destination, black-holed, or cause asymmetric routing. Common symptoms include:

  • Intermittent connectivity for hosts in the overlapping range
  • ARP conflicts and duplicate IP detection warnings
  • Unexpected traffic flows when a more-specific route captures packets meant for another segment

Overlap Prevention in Practice

The best way to prevent subnet overlap is to maintain a single source of truth for your address allocations. Whether that is an IPAM tool like NetBox, phpIPAM, or even a well-maintained spreadsheet, having one place where all allocations are recorded makes it possible to check for conflicts before deploying new subnets. The biggest risk comes from shadow IT -- teams that provision cloud resources or VPN tunnels without updating the central address registry. Establishing a process where every new subnet allocation requires an overlap check against the master list catches conflicts before they reach production.

When you do discover overlapping subnets in a live network, the resolution options depend on the severity and scope. The cleanest solution is renumbering one of the conflicting subnets to a non-overlapping range, but this requires updating every device, DNS record, firewall rule, and application configuration that references the old addresses. For VPN scenarios, NAT can translate addresses at the tunnel boundary to avoid conflicts, though this adds complexity and can break applications that embed IP addresses in their payload. In cloud environments, overlapping VPC CIDRs simply cannot be peered -- you must renumber one VPC before connectivity is possible.

A practical tip for multi-site organizations is to allocate address space hierarchically from the start. Assign each site a non-overlapping block from your RFC 1918 space (for example, site A gets 10.1.0.0/16, site B gets 10.2.0.0/16, site C gets 10.3.0.0/16), and then subdivide within each block for local VLANs and services. This structure makes overlap between sites impossible by design, and an overlap check is only needed when allocating within a single site.

Frequently Asked Questions

Are adjacent subnets considered overlapping? No. Adjacent subnets share a boundary but no addresses. For example, 192.168.0.0/24 ends at 192.168.0.255 and 192.168.1.0/24 starts at 192.168.1.0 -- they are adjacent but do not overlap.

Can two subnets partially overlap with standard CIDR notation? With properly aligned CIDR blocks, overlap is always a containment relationship -- one fully contains the other. True partial overlap only occurs when working with arbitrary IP ranges rather than CIDR blocks. CIDR blocks are power-of-two aligned, so if they overlap at all, the smaller one is always fully contained within the larger one.

What should I do if my subnets overlap? You have several options: renumber one of the subnets to a non-conflicting range, use NAT to translate addresses at the boundary, or adjust the prefix lengths so the subnets no longer share addresses. For VPN scenarios, split tunneling or policy-based routing can sometimes work around the conflict.

Why does cloud VPC peering fail when CIDRs overlap? Cloud providers enforce a strict no-overlap policy for VPC peering because overlapping address ranges make it impossible for the cloud routing fabric to determine where to send packets. This is a hard requirement -- there is no NAT workaround within the peering connection itself. You must renumber one of the VPCs or use a transit gateway with NAT capabilities.

How do I check for overlaps across my entire network? For a comprehensive audit across many subnets, use the Subnet Overlap Checker (List vs List), which performs an exhaustive cross-comparison between two lists of CIDRs. This is particularly useful during merger planning or multi-cloud architecture reviews.

Does this tool handle IPv6 subnets? Yes. The overlap detection logic is identical for IPv4 and IPv6. IPv6 ranges are compared using the same start-address/end-address intersection test, just with 128-bit addresses instead of 32-bit.

Related Tools

IPparse•Free Network & Subnet Calculator Tools

© 2026 IPparse. All tools run locally in your browser.

100% Privacy-First • No Data Collected