How to check CIDR blocks for overlaps
- 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. - 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.
- 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. - 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/32and point-to-point/31blocks (RFC 3021) are all valid. - Leading zeros in IPv4 are rejected, as in Go's
net/netip:010.0.0.0is 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, asnetip.ParsePrefixdoes: 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/netipparser; 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/0and::/0to single/32and/128hosts, 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.