kwong / subnetfinder

Simple script that calculates the largest allocatable RFC 1918 subnet range

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subnetfinder 🔍

Simple python script that calculates the largest allocatable RFC 1918 subnet range.

  1. (Optional) Create a virtual environment
$ python -m venv venv
  1. (Optional) Activate your virtual environment
source ./venv/bin/activate
  1. Install the subnetfinder module
pip install subnetfinder
  1. Create and update text file containing list of in-use ranges
# update as necessary
tee list.txt <<EOF
10.0.0.0/16
10.1.0.0/16
EOF
  1. Perform the search
make search range=<range e.g. 10.0.0.0/8> mask=<e.g. 10> file=<e.g. ./list.txt>

About

Simple script that calculates the largest allocatable RFC 1918 subnet range


Languages

Language:Makefile 100.0%