Expands a list of IP subnet masks into IP address ranges and then expands the resulting ranges into individual IP addresses.
This project wraps the excellent Network and IP address calculator by Guido Socher to convert the IP subnet mask to an IP range. My contribution is just automating the conversion using a list of subnet masks, expanding the IP address ranges, and saving the result to csv files.
Create a file with each subnet mask on a new line:
23.96.0.0/18
23.96.64.0/28
23.96.64.64/26
...
node app.js FILENAME
There will be 2 CSV files generated.
range.csv
contains the ip address ranges. Columns: "IP Range Subnet Mask", "First IP", "Last IP"expanded.csv
contains all of the ip addresses in the ranges. Columns: "Expanded"