Compare IPv6 Prefixes

Check whether two IPv6 prefixes overlap, contain one another, or stay separate.

IPv6 Prefix compare Allocation review

Delegation Check

Compare 128-bit prefix ranges before route design, site delegation, or firewall policy updates.

Containment Overlap Separate

What This Tool Does

This page compares two IPv6 prefixes and explains whether they overlap, nest, or remain separate. The current form and summary area stay unchanged.

Inputs explained

Enter two IPv6 CIDR blocks such as 2001:db8::/48 and 2001:db8:0:1::/64. Each prefix represents a numeric range within the 128 bit IPv6 space.

How it works

The tool expands the two prefixes into numeric start and end boundaries, then checks whether the ranges intersect or contain one another.

Compare IPv6 Subnets

Summary

Step-by-Step Example

Compare 2001:db8::/48 with 2001:db8:1::/64. The smaller prefix sits inside the larger delegated block, so the result is containment rather than simple overlap.

Use Cases

Use IPv6 comparison for route design, customer delegation review, and validation of planned allocations.

Assumptions and limitations

The output is pure prefix math. It does not consider routing policy, ownership, or overlay separation.

Frequently Asked Questions

How do I compare two IPv6 prefixes?

To compare two IPv6 prefixes, normalize the addresses, apply the prefix lengths, and calculate each range's first and last address. Then check whether the ranges are separate, overlapping, or one contains the other. The logic is the same as IPv4, but the address space is 128 bits and the notation is hexadecimal. For example, 2001:db8:100::/48 contains 2001:db8:100:1::/64. A calculator is helpful because compressed notation can hide boundaries that are easy to misread by eye.

Do two IPv6 prefixes overlap?

Two IPv6 prefixes overlap when at least one address is shared by both ranges. For example, 2001:db8:abcd::/48 overlaps with 2001:db8:abcd:10::/64 because the /64 sits inside the /48. But 2001:db8:abcd::/48 and 2001:db8:abce::/48 do not overlap. The large size of IPv6 does not remove the need for overlap checks. In enterprise design, overlapping IPv6 prefixes can still break routing, firewall rules, IPAM records, and cloud network peering. Check before deployment.

Is one IPv6 prefix inside another?

One IPv6 prefix is inside another when all of its addresses fall within the larger prefix. A /64 can be inside a /56, and a /56 can be inside a /48, if the leading bits match correctly. For example, 2001:db8:1200:3400::/64 may be part of 2001:db8:1200::/48. The longer prefix is more specific. This matters for route planning, delegation, and security policy because a broad allow or route may already include many smaller customer, VLAN, or site prefixes.

How do I check IPv6 prefix containment?

IPv6 prefix containment is checked by comparing the normalized start and end boundaries of both prefixes. If the smaller prefix begins after or at the larger prefix start, and ends before or at the larger prefix end, it is contained. Prefix length alone is not enough; the actual bits must align. A /64 is not automatically inside any /48 that looks similar in text. Expand or normalize the address first, then compare. This prevents mistakes caused by compressed zeros and hexadecimal grouping.

How do I find an IPv6 prefix range?

To find an IPv6 prefix range, apply the prefix length to determine the fixed network bits and the variable host bits. The first address has all host bits set to zero. The last address has all host bits set to one. For example, a /64 has 64 network bits and 64 host bits, so the range is very large. IPv6 does not have a broadcast address, so the last address is simply the range boundary, not a broadcast address. This output helps with firewall and IPAM planning.

How do I compare a /48 and /64 IPv6 prefix?

A /48 and a /64 represent different levels in the IPv6 hierarchy. A /48 is commonly used as a larger site or organization allocation, while a /64 is commonly used on an individual LAN segment. One /48 contains 65,536 separate /64 prefixes because 64 - 48 = 16 and 2^16 = 65,536. So 2001:db8:10::/48 can contain many /64 networks, such as 2001:db8:10:1::/64. The /64 is more specific and is the one usually assigned to an interface subnet.

Can IPv6 subnets conflict?

Yes, IPv6 subnets can conflict. The address space is huge, but overlap still happens when prefixes are planned poorly, copied between labs, or assigned without IPAM control. If two sites both use the same ULA prefix, or two cloud networks receive overlapping IPv6 ranges, routing and security policy can fail just like with IPv4. The fix is the same discipline: allocate from a documented parent block, check containment and overlap, and avoid making assumptions based only on the compressed text format.

Sources & References

Related Tools

IPv6 Calculator

Inspect individual IPv6 prefixes and normalized address forms.

IPv6 Range to CIDR

Convert raw IPv6 spans before comparing them.