Network Aggregation
Michael Sierchio
kudzu at tenebras.com
Mon Dec 2 17:04:34 UTC 2019
The python library netaddr?
import netaddr
import sys
cidr_list = []
for line in sys.stdin:
cidr_list.append(netaddr.IPNetwork(line))
ec2_nets = netaddr.cidr_merge(cidr_list)
for net in ec2_nets:
sys.stdout.write(str(net)+'\n')
On Mon, Dec 2, 2019 at 3:07 AM Jerry <jerry at seibercom.net> wrote:
> I am looking for a program that will automate combining IP addresses,
> usually referred to as aggregation. I have been doing it by hand, and
> it is a real PIA.
>
> Thanks!
>
> --
> Jerry
>
--
"Well," Brahmā said, "even after ten thousand explanations, a fool is no
wiser, but an intelligent person requires only two thousand five hundred."
- The Mahābhārata
More information about the freebsd-questions
mailing list