IP Route Computer

This page computes complex expressions involving IP subnets and route sets. A route set is a collection of zero or more IP subnets, where an IP subnet is an IP network base address plus a netmask width in the range zero to 32.

IP subnets are represented in "slash notation", e.g., 192.168.1.0/24. Trailing zeros in the IP address may be omitted, e.g., 192.168/16 or 10/8.

Operations supported are union, intersection, difference, and grouping. Results are always displayed with the fewest possible subnets.

Syntax Summary

Operation Example Description
Single Subnet 192.168.1.0/24 Defines a route set containing a single subnet.
Inversion ~expr Computes the inverse route set of expr
Grouping ( expr ) Same as expr; overrides default precedence
Union expr1 + expr2 Computes the union of expr1 and expr2
Intersection expr1 ^ expr2 Computes the intersection of expr1 and expr2
Difference expr1 - expr2 Computes the difference of expr1 and expr2

Operations are listed in order of precedence, except that the union, intersection, and difference operators all have the same precedence and associate from left to right.

This GWT-based Javascript application runs entirely within your web browser.