Tools for automatically summarising CIDR notation list?
My Google-fu has failed me. It defies logic that there aren’t tools (application, Excel based or online) which will take a list of CIDR formatted prefixes and spit out an optimally summarised list also in CIDR notation. I however, can’t find them. Neither can my friends. I have seen an excel sheet which almost does it, but it requires significant manual interaction and I think it relies on zero point energy and/or wizards magic to work… and I don’t understand it well. Any pointers? And no, doing it in my head isn’t feasible J Cheers – Neil G
http://www.openbsd.org/4.5_packages/i386/aggregate-1.6.tgz-contents.html
This one is magic :)
On Thu, Jun 5, 2014 at 6:41 PM, Neil Gardner
My Google-fu has failed me. It defies logic that there aren’t tools (application, Excel based or online) which will take a list of CIDR formatted prefixes and spit out an optimally summarised list also in CIDR notation. I however, can’t find them.
Neither can my friends.
I have seen an excel sheet which almost does it, but it requires significant manual interaction and I think it relies on zero point energy and/or wizards magic to work… and I don’t understand it well.
Any pointers?
And no, doing it in my head isn’t feasible J
Cheers – Neil G _______________________________________________ NZNOG mailing list NZNOG(a)list.waikato.ac.nz http://list.waikato.ac.nz/mailman/listinfo/nznog
Many thanks Tom (and Michael and David - offlist)
David, I'd love a copy of the Perl script to do it, but in the
meantime, I used some better search terms from the replies so far to
actually find an online converter that seems to do the job.
http://forums.modem-help.co.uk/aggregate.php
Thanks all
Cheers _ N
On 6 June 2014 13:42, Tom Paseka
http://www.openbsd.org/4.5_packages/i386/aggregate-1.6.tgz-contents.html
This one is magic :)
On Thu, Jun 5, 2014 at 6:41 PM, Neil Gardner
wrote: My Google-fu has failed me. It defies logic that there aren’t tools (application, Excel based or online) which will take a list of CIDR formatted prefixes and spit out an optimally summarised list also in CIDR notation. I however, can’t find them.
Neither can my friends.
I have seen an excel sheet which almost does it, but it requires significant manual interaction and I think it relies on zero point energy and/or wizards magic to work… and I don’t understand it well.
Any pointers?
And no, doing it in my head isn’t feasible J
Cheers – Neil G _______________________________________________ NZNOG mailing list NZNOG(a)list.waikato.ac.nz http://list.waikato.ac.nz/mailman/listinfo/nznog
On 5 Jun 2014, at 21:42, Tom Paseka
http://www.openbsd.org/4.5_packages/i386/aggregate-1.6.tgz-contents.html
This one is magic :)
The original source is still available at ftp://ftp.isc.org/isc/aggregate/ Quite the blast from the past! I wrote that while I was working at AboveNet more than a decade ago. Joe
On Fri, 6 Jun 2014 13:41:37 +1200, Neil Gardner wrote:
My Google-fu has failed me. It defies logic that there aren’t tools (application, Excel based or online) which will take a list of CIDR formatted prefixes and spit out an optimally summarised list also in CIDR notation. I however, can’t find them.
Here's a quick hack job script. You could probably shorten this down and/or make it more robust, but it'll work fine as-is. #!/usr/bin/python # requires Google's `ipaddr' module, from https://pypi.python.org/pypi/ipaddr/ import ipaddr import sys prefixes = [] for prefix in sys.stdin.read().splitlines(False): prefixes.append(ipaddr.IPNetwork(prefix)) summarised_prefixes = ipaddr.collapse_address_list(prefixes) for prefix in summarised_prefixes: print prefix Example usage: mfincham(a)zuse:~$ cat test 10.1.0.0/24 10.1.1.0/24 192.168.23.0/24 mfincham(a)zuse:~$ ./summary.py < test 10.1.0.0/23 192.168.23.0/24 -- Michael
On Fri, 6 Jun 2014, Neil Gardner wrote:
My Google-fu has failed me. It defies logic that there aren’t tools (application, Excel based or online) which will take a list of CIDR formatted prefixes and spit out an optimally summarised list also in CIDR notation. I however, can’t find them.
"netmask" comes in the standard debian/ubuntu repos. $ netmask 10.0.0.7/8 10.1.2.3/7 10.0.0.0/7 -- Simon Lyall | Very Busy | Web: http://www.simonlyall.com/ "To stay awake all night adds a day to your life" - Stilgar
participants (5)
-
Joe Abley
-
Michael Fincham
-
Neil Gardner
-
Simon Lyall
-
Tom Paseka