addrcomp - address compiler
SYNOPSIS
addrcomp [-[hHodv]] [-f format] [filename]
DESCRIPTION
Addrcomp is a filter to translate the list of ip addresses
to aggregated form. Input address list:
192.168.4.1
192.168.4.2
192.168.4.3
will be translated to following form.
192.168.4.1
192.168.4.2:255.255.255.254
Addresses can described in several syntaxes.
192.168.1.1
192.168.4.0:255.255.254.0
192.168.4.0/23
192.168.*
Also it understands the negative notation start with !
following address range. So if you want to exclude
10.10.10.* subnet from overall 10.* network, it can be
described as
10.* !10.10.*
and the output will be complex affirmative address list
like follwing:
10.0.0.0:255.248.0.0
10.8.0.0:255.254.0.0
10.11.0.0:255.255.0.0
10.12.0.0:255.252.0.0
10.16.0.0:255.240.0.0
10.32.0.0:255.224.0.0
10.64.0.0:255.192.0.0
10.128.0.0:255.128.0.0
Exclude address is supporting scattered address like this.
192.168.4/24 !192.168.4.{95,96,99-158,201-255}
192.168/16 !192.168.{0-7}.*
-f format
Specify the format of address description. If for-
mat is "mask" or this option is omitted, aggregated
address range is described in address:mask nota-
tion. If format is "slash", the output will be
like address/masklen;
-d Debug option.
-o Print original input line along with converted
line. Original line is start with # character.
-v Print address bitmap for debugging.
BUGS
Input address list should be sorted.
AUTHOR
Kazumasa Utashiro <utashiro@iij.ad.jp>
Internet Initiative Japan Inc.
3-13 Kanda Nishiki-cho, Chiyoda-ku, Tokyo 101, Japan
Man(1) output converted with
man2html