http://qs321.pair.com?node_id=304441


in reply to Iterating through all IP addresses in a CIDR

We had to do the same thing for our IP management system at work.

Take a look at Net::Netmask, specifically the enumerate method which will return a list of the IPs within a block

  • Comment on Re: Iterating through all IP addresses in a CIDR