Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Managing IP CIDR blocks

by Galdor (Sexton)
on Nov 23, 2018 at 15:22 UTC ( [id://1226233]=perlquestion: print w/replies, xml ) Need Help??

Galdor has asked for the wisdom of the Perl Monks concerning the following question:

Looking to manage hundreds of distinct subnets in separate Amazon AWS accounts and each will have unique VPC/CIDR subnets - The idea is to:
  • Ensure no overlaps of address blocks - each will have one or more and be unique
  • Be able to trace any IP address to it's relevant block - should need arise
  • Be economic with CIDR IP blocks - ie if they only need 10 IPs then pick a matching subnet mask
I though of writing a perl script to manage this - but not sure how to do it. Is this even possible? If so what modules do the wise monks propose?

2018-11-24 Athanasius added <ul> and <li> tags

Replies are listed 'Best First'.
Re: Managing IP CIDR blocks
by hippo (Bishop) on Nov 23, 2018 at 15:33 UTC

    As a satisfied customer of Net::CIDR::Lite I have no hesitation in recommending this module for most CIDR tasks. It should simplify some, if not all, of the actions you've outlined here.

      Thank you Sir! I am on my way ...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1226233]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-18 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found