> Markdown version of https://opspane.dev/network/cidr-overlap/ for AI agents and readers: the same text, without navigation or the interactive tool.
>
> The tool computes its result with JavaScript in the browser, so this file holds the reference text, worked examples and FAQ. Open the page to run it on your own input.
>
> Link the CIDR overlap checker with a list: `list` (one CIDR per line, IPv4 or IPv6, optional label), e.g. https://opspane.dev/network/cidr-overlap/?list=vpc%2010.0.0.0%2F16%0Avpc-v6%202001%3Adb8%3A%3A%2F56
>
> Answer endpoint for agents: the same URL parameters on https://opspane.dev/network/cidr-overlap/answer.md return the computed result as Markdown, without JavaScript, e.g. https://opspane.dev/network/cidr-overlap/answer.md?list=vpc%2010.0.0.0%2F16%0Apeer%2010.0.64.0%2F18

# CIDR Overlap Checker

Paste labeled IPv4 or IPv6 CIDRs to find every overlap and containment, the merged summary routes, host-bit fixes and private or public ranges.

## Quick answer

- Two CIDR blocks overlap exactly when one contains the other: every block is aligned to its own size, so they never partly overlap.
- To check, compare the larger block's first and last address with the smaller block: `172.16.0.0/12` runs from 172.16.0.0 to 172.31.255.255, so it contains `172.17.0.0/16` and all 65,536 of its addresses.
- “Host bits set” means the address is not the start of its block: `10.0.0.1/16` should be written `10.0.0.0/16`.
- An IPv4 block never overlaps an IPv6 one; overlaps are checked within each family.

## How to check CIDR blocks for overlaps

1. Paste one CIDR block per line — VPCs, peered VPCs, on-prem ranges, the Kubernetes Pod and Service CIDRs, `docker0`, IPv4 or IPv6 — with a label before or after each so the results say which network is which.
2. Read the overlaps: each pair says whether one block contains the other or both are the same, and gives the shared range and its address count. Red bars on the number line mark every block involved.
3. Check the table for host bits (`10.0.0.1/16`), single addresses and the type of each range — private RFC 1918, shared RFC 6598, unique local (ULA), link-local or public — and press Apply fixes to rewrite the list in canonical form.
4. Copy the merged summary when you need the fewest blocks that cover everything, or copy the link to share the exact list.

## Overlaps that keep happening

Default ranges from Docker, kubeadm, EKS, Calico and Flannel against the networks they usually meet — each row computed by the checker's engine:

| Range | Against | Relation | Overlap | Addresses |
| --- | --- | --- | --- | --- |
| docker0 `172.17.0.0/16` | VPC `172.17.0.0/16` | identical | `172.17.0.0/16` | 65,536 |
| docker0 `172.17.0.0/16` | On-prem `172.16.0.0/12` | sits inside | `172.17.0.0/16` | 65,536 |
| kubeadm Service CIDR `10.96.0.0/12` | VPC `10.100.0.0/16` | contains | `10.100.0.0/16` | 65,536 |
| EKS Service CIDR (default) `10.100.0.0/16` | Peered VPC `10.100.0.0/16` | identical | `10.100.0.0/16` | 65,536 |
| EKS Service CIDR (default) `172.20.0.0/16` | On-prem `172.16.0.0/12` | sits inside | `172.20.0.0/16` | 65,536 |
| Calico pool (default) `192.168.0.0/16` | Office LAN `192.168.1.0/24` | contains | `192.168.1.0/24` | 256 |
| Flannel Pod CIDR `10.244.0.0/16` | On-prem `10.0.0.0/8` | sits inside | `10.244.0.0/16` | 65,536 |
| Pod CIDR (custom networking) `100.64.0.0/16` | Peered VPC `100.64.0.0/20` | contains | `100.64.0.0/20` | 4,096 |

## Special-purpose IPv4 ranges

How the checker types each block: the most specific range below that contains it, “public” when none does, and “mixed” when a block straddles one (for example `10.0.0.0/7`).

| CIDR | Type | Source | Addresses |
| --- | --- | --- | --- |
| `0.0.0.0/8` | “This network” | RFC 791 | 16,777,216 |
| `10.0.0.0/8` | Private | RFC 1918 | 16,777,216 |
| `100.64.0.0/10` | Shared address space (CGNAT) | RFC 6598 | 4,194,304 |
| `127.0.0.0/8` | Loopback | RFC 1122 | 16,777,216 |
| `169.254.0.0/16` | Link-local | RFC 3927 | 65,536 |
| `172.16.0.0/12` | Private | RFC 1918 | 1,048,576 |
| `192.0.0.0/24` | IETF protocol assignments | RFC 6890 | 256 |
| `192.0.2.0/24` | Documentation (TEST-NET-1) | RFC 5737 | 256 |
| `192.168.0.0/16` | Private | RFC 1918 | 65,536 |
| `198.18.0.0/15` | Benchmarking | RFC 2544 | 131,072 |
| `198.51.100.0/24` | Documentation (TEST-NET-2) | RFC 5737 | 256 |
| `203.0.113.0/24` | Documentation (TEST-NET-3) | RFC 5737 | 256 |
| `224.0.0.0/4` | Multicast | RFC 5771 | 268,435,456 |
| `240.0.0.0/4` | Reserved for future use | RFC 1112 | 268,435,456 |
| `255.255.255.255/32` | Limited broadcast | RFC 919 | 1 |

## Special-purpose IPv6 ranges

The same rule for IPv6, from the IANA IPv6 Special-Purpose Address Registry plus the multicast and deprecated site-local blocks of the IPv6 address space registry. Outside these, `2000::/3` is global unicast (GUA, “public”) and the rest is reserved by the IETF.

| CIDR | Type | Source | Addresses |
| --- | --- | --- | --- |
| `::/128` | Unspecified | RFC 4291 | 1 |
| `::1/128` | Loopback | RFC 4291 | 1 |
| `::ffff:0:0/96` | IPv4-mapped | RFC 4291 | 2³² |
| `64:ff9b::/96` | IPv4/IPv6 translation (NAT64) | RFC 6052 | 2³² |
| `64:ff9b:1::/48` | Local-use IPv4/IPv6 translation | RFC 8215 | 2⁸⁰ |
| `100::/64` | Discard-only | RFC 6666 | 2⁶⁴ |
| `100:0:0:1::/64` | Dummy IPv6 prefix | RFC 9780 | 2⁶⁴ |
| `2001::/23` | IETF protocol assignments | RFC 2928 | 2¹⁰⁵ |
| `2001::/32` | Teredo | RFC 4380 | 2⁹⁶ |
| `2001:1::1/128` | Port Control Protocol anycast | RFC 7723 | 1 |
| `2001:1::2/128` | TURN anycast | RFC 8155 | 1 |
| `2001:1::3/128` | DNS-SD SRP anycast | RFC 9665 | 1 |
| `2001:2::/48` | Benchmarking | RFC 5180 | 2⁸⁰ |
| `2001:3::/32` | AMT | RFC 7450 | 2⁹⁶ |
| `2001:4:112::/48` | AS112-v6 | RFC 7535 | 2⁸⁰ |
| `2001:10::/28` | Deprecated (formerly ORCHID) | RFC 4843 | 2¹⁰⁰ |
| `2001:20::/28` | ORCHIDv2 | RFC 7343 | 2¹⁰⁰ |
| `2001:30::/28` | Drone Remote ID (DETs) | RFC 9374 | 2¹⁰⁰ |
| `2001:db8::/32` | Documentation | RFC 3849 | 2⁹⁶ |
| `2002::/16` | 6to4 | RFC 3056 | 2¹¹² |
| `2620:4f:8000::/48` | Direct delegation AS112 | RFC 7534 | 2⁸⁰ |
| `3fff::/20` | Documentation | RFC 9637 | 2¹⁰⁸ |
| `5f00::/16` | Segment Routing (SRv6) SIDs | RFC 9602 | 2¹¹² |
| `fc00::/7` | Unique local (ULA) | RFC 4193 | 2¹²¹ |
| `fe80::/10` | Link-local | RFC 4291 | 2¹¹⁸ |
| `fec0::/10` | Site-local (deprecated) | RFC 3879 | 2¹¹⁸ |
| `ff00::/8` | Multicast | RFC 4291 | 2¹²⁰ |

### ULA or GUA?

Unique local addresses (`fd00::/8`, RFC 4193) are IPv6's private space: pick a random 40-bit global ID and the `/48` is yours, with almost no chance of colliding with a network you later peer with — unlike `10.0.0.0/8`. Global unicast addresses (GUA, `2000::/3`) are public and routable; clouds hand them out by default (an Amazon-provided VPC block is a GUA `/56`), and a firewall, not NAT, keeps them private. `fc00::/8`, the other half of `fc00::/7`, has no allocation scheme, so use `fd00::/8`.

## Host bits and canonical blocks

A CIDR's address should be the first address of its block. When it isn't, tools disagree about what you meant — the checker shows the block that the address actually falls in:

| Typed | Canonical block | Addresses |
| --- | --- | --- |
| `10.0.0.1/16` | `10.0.0.0/16` | 65,536 |
| `192.168.1.130/25` | `192.168.1.128/25` | 128 |
| `172.31.255.255/20` | `172.31.240.0/20` | 4,096 |
| `10.1.4.7/24` | `10.1.4.0/24` | 256 |
| `2001:db8:1200:1::7/64` | `2001:db8:1200:1::/64` | 2⁶⁴ |
| `fd00:10:244:1::/48` | `fd00:10:244::/48` | 2⁸⁰ |

## Parsing rules

- IPv4: four decimal numbers 0–255 and a prefix length 0–32: `0.0.0.0/0`, `255.255.255.255/32` and point-to-point `/31` blocks (RFC 3021) are all valid.
- Leading zeros in IPv4 are rejected, as in Go's `net/netip`: `010.0.0.0` is 8.0.0.0 to tools that read octal and 10.0.0.0 to the rest, so the checker asks you to write which one you mean. Netmasks (`10.0.0.0/255.255.0.0`) get a suggested prefix length.
- IPv6: the text forms of RFC 4291 — eight groups of up to four hex digits in either case, one `::` for one or more zero groups, an IPv4 tail only in the last 32 bits (`::ffff:192.0.2.1`) — and a prefix length 0–128. Five hex digits, two `::`, or a `::` with nothing to stand for are errors.
- Zone IDs (`fe80::1%eth0`) are refused, as `netip.ParsePrefix` does: a zone names an interface on one host, so it can't be part of a range. The fix drops it.

The checker prints every IPv6 block in RFC 5952 canonical form, so the same network always reads the same:

| Typed | Canonical (RFC 5952) |
| --- | --- |
| `2001:0DB8:0000:0000:0000:0000:0000:0001/128` | `2001:db8::1/128` |
| `2001:db8:0:0:1:0:0:1/128` | `2001:db8::1:0:0:1/128` |
| `2001:db8:0:1:1:1:1:1/128` | `2001:db8:0:1:1:1:1:1/128` |
| `fd00:0:0:0:0:0:0:0/8` | `fd00::/8` |
| `0:0:0:0:0:ffff:c000:0201/128` | `::ffff:192.0.2.1/128` |

## Verification

- Special ranges follow the IANA IPv4 and IPv6 Special-Purpose Address Registries and the RFCs listed in the tables; the EKS Service CIDR defaults and the overlap warning come from the Amazon EKS user guide (checked 2026-11-20).
- IPv6 parsing follows RFC 4291 §2.2 with the error cases of Go's `net/netip` parser; output follows RFC 5952, tested with the RFC's own examples (including the tie between two equal zero runs) and 2,000 seeded round trips.
- The engine's unit tests cover overlap, containment and aggregation from `0.0.0.0/0` and `::/0` to single `/32` and `/128` hosts, including the highest IPv4 and IPv6 addresses, at 100% line and branch coverage.
- The e2e spec proves the check stays in this tab: no request carries your list or its labels, IPv4 or IPv6.

- [IANA IPv4 special-purpose registry](https://www.iana.org/assignments/iana-ipv4-special-registry/)
- [IANA IPv6 special-purpose registry](https://www.iana.org/assignments/iana-ipv6-special-registry/)
- [RFC 4291 (IPv6 addressing)](https://www.rfc-editor.org/rfc/rfc4291)
- [RFC 5952 (IPv6 text form)](https://www.rfc-editor.org/rfc/rfc5952)
- [RFC 4193 (ULA)](https://www.rfc-editor.org/rfc/rfc4193)
- [Go net/netip](https://pkg.go.dev/net/netip)
- [RFC 1918](https://www.rfc-editor.org/rfc/rfc1918)
- [RFC 6598](https://www.rfc-editor.org/rfc/rfc6598)
- [RFC 4632 (CIDR)](https://www.rfc-editor.org/rfc/rfc4632)
- [Amazon EKS: networking requirements](https://docs.aws.amazon.com/eks/latest/userguide/network-reqs.html)
- [AWS: VPC CIDR blocks](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html)

## FAQ

### How do I know if two CIDR blocks overlap?

Two CIDR blocks overlap exactly when one contains the other — they can never partly overlap, because every block is aligned to its own size. Compare the larger block's first and last address with the smaller block: 172.16.0.0/12 runs from 172.16.0.0 to 172.31.255.255, so it contains 172.17.0.0/16 and all 65,536 of its addresses.

### Why does Docker's 172.17.0.0/16 break VPC connectivity?

docker0, Docker's default bridge, takes 172.17.0.0/16 on every host that runs Docker. The host gets a connected route for that /16 on the bridge, which beats its default route, so packets to VPC addresses in 172.17.x.x outside the host's own subnet go to docker0 instead of the VPC. AWS advises against 172.17.0.0/16 for VPCs because Cloud9 and SageMaker use it; when you can't move the VPC, set Docker's bip and default-address-pools to another range.

### Can a Kubernetes Service CIDR overlap a peered VPC?

It shouldn't. EKS warns that when the Service CIDR overlaps a connected VPC, Service IPs take priority and routing to the real hosts becomes unpredictable. EKS picks 10.100.0.0/16 or 172.20.0.0/16 when you don't choose one — so a peered VPC on 10.100.0.0/16 is identical to it, all 65,536 addresses.

### What does “host bits set” mean, and how do I fix it?

The address has bits set below the prefix, so it isn't the start of its block: 10.0.0.1/16 should be written 10.0.0.0/16, and 2001:db8:1200:1::7/64 is 2001:db8:1200:1::/64. The AWS API quietly stores the canonical form, which hides typos such as a /24 meant as a /16. The checker shows the canonical block for every such line, and Apply fixes rewrites them in place.

### Can I check IPv6 and IPv4 ranges together?

Yes. Paste both in one list: each line is read as IPv4 or IPv6 from its text, overlaps are only reported within a family (an IPv4 block never overlaps an IPv6 one), and the number line and the merged summary are drawn per family. IPv6 addresses are printed in RFC 5952 canonical form — lowercase, leading zeros dropped, the longest run of zero groups as ::.

### Is ::ffff:10.0.0.0/104 the same as 10.0.0.0/8?

Not to the checker. ::ffff:0:0/96 is the IPv4-mapped range (RFC 4291): a dual-stack socket API's way to show an IPv4 peer, never an address on the wire. Like Go's net/netip, the checker keeps it an IPv6 block, so it doesn't overlap 10.0.0.0/8 — and it labels the block IPv4-mapped so the mix-up is visible.

### Is 100.64.0.0/10 private?

Not in the RFC 1918 sense — it is “Shared address space (CGNAT)” from RFC 6598, meant for carrier-grade NAT, and the checker labels it that way. AWS and Azure both accept it inside a VPC/VNet, and EKS custom networking often uses it for Pods; just make sure no carrier-grade NAT path also routes it.

### What is the merged summary for?

It is the fewest CIDR blocks covering exactly the same addresses as your list — a summary route for a route table, firewall or allowlist. 10.0.0.0/24, 10.0.1.0/24, 10.0.2.0/23, 10.0.4.0/22 merge into 10.0.0.0/21. Blocks that touch but don't align stay separate, since a CIDR block must start on a multiple of its size.

## Related tools

- [VPC Subnet Planner](https://opspane.dev/network/vpc-subnet-planner/): Split a VPC CIDR into aligned subnets per AZ, sized by prefix or host count (EKS pods), with AWS usable IPs, dual-stack /64s and aws_subnet Terraform.
- [Kubernetes Pod & Service CIDR Planner](https://opspane.dev/kubernetes/pod-cidr/): Max nodes and Pods per node from --node-cidr-mask-size, Service CIDR limits, kube-dns IP and overlaps for IPv4, IPv6 and dual-stack clusters.
- [EKS Max Pods Calculator](https://opspane.dev/kubernetes/eks-max-pods/): Calculate max pods per node for every EC2 instance type, with prefix delegation and the IP addresses your pod CIDR must hold.
- [Kubernetes CronJob Generator](https://opspane.dev/cron/kubernetes/): Generate a complete CronJob manifest with schedule, timeZone, concurrencyPolicy and history limits, explained field by field.
