Subnet Calculator
Calculates subnets for a given ip and subnetmask. Populates each created subnets with the subnet address, broadcast address, and list all assignable IP addresses. All output is written and saved in a user specified destination txt file.
Handles Class A, B, C networks.
- Python 3 needs to be installed and added to Path
- Using CLI, navigate to the folder you wish to download the application and run:
git clone https://github.com/Node0o1/ipv4_subnet_calc.git
- after downloading, use the CLI to navigate into the directory
- No dependancies.
-
From within the calc_ipv4_subnet directory using CLI:
- python file.py param1 param2 param3 param4
- params=(starting ip, subnetmsk, num of borrowed bits, output_file)
- example:
python ipv4_subnet_calc.py 192.168.0.0 255.255.0.0 4 ./output_file.txt
-
you may omit the parameters in CLI and be prompted for each param individually.
- example:
python ipv4_subnet_calc.py
- example:
With parameters:
Or without parameters:
File contents: