.TH nbinter 1 2004-07-28 CQUEST .SH NAME nbinter \- see if IP address ranges intersect each other .SH SYNOPSIS .B nbinter [\fI\-1\fR] .I IPRange1 .I IPRange2 [\fIIPRange3\fR ...] .SH DESCRIPTION .I Nbinter checks to see if the IP address ranges are subsets of each other, intersect each other, or are equal to each other. If .I nbinter is given the .I \-1 argument, processing stops after the first IP address range has been checked to see if it intersects, equals, or is a subset or superset of the remaining IP address ranges; it also gives some bonus information about whether the first IP address range is usefully adjacent to any of the remaining ranges. .PP IP address ranges may be specified in three forms: single IP addresses, CIDR netblocks (zero octets may be omitted, eg you may write 127/8 for 127.0.0.0/8), or an arbitrarily large range written \fILOW\fR\-\fIHIGH\fR. Any CIDR netblocks given must be proper ones, where the IP address is the lowest bound of the range (eg, 127.0.0.0/24 is a proper CIDR, but 127.0.0.1/24 is not, because 127.0.0.1 is not the start of the /24 that includes it). .SH BUGS .I Nbinter should report about netblock merging possibilities across all of the IP address ranges, but this is hard to do well. The current approach (especially the limitation to only working in the .I \-1 case) is quite lame. .SH SEE ALSO .IR nbcalc (1), which uses the same IP address range specifications as this program. .SH AUTHOR Chris Siebenmann