Python Script for Subnet-Calculator
Hi Guys, Sometimes it is important for a network admins to assign an IP address to multiple devices by doing manual calculations if he is working for a small organization who are not able to afford big commercial tools to automatically assign the IP address. This post will share with you a nice python script which helps you to calculate IP ranges available for given subnet mask and it will generate new IP for an admin to assign to a device. Here is the screenshot of the output for reference so than you can determine whether this output will any role in the work routine. Perquisites : You must have python installed. Python 3.7 or above. You can also run this Python code in any other python supported IDE. Here is the DFD (Data-Flow diagram) of our application : Program Code: ############# Application #1 - Part #1 ############# import random import sys def subnet_calc(): try: pr...