Subnet Calculator for Local-Area-Network(LAN)
PR Title
#Give a title to your PR Subnet Calculator for Local-Area-Network(LAN)
Summary
summary...
Created a python script to have IP-Address of your Local-machine with Interface, Subnet, Netmask and Broadcast channel
Description
Using a psutils Library we can retrive information on system utilization (CPU, memory, disks, network, sensors) and system information (users, running processes). In this script, it’s used to get network interface details. ipaddress used to create, manipulate and IPv4 and IPv6 address, Here I couldn't use psutil.AF_INET to check if its IPv4 or IPv6 so using 2 which represents IPv4.
Created a Dictionary and iterated over all the interfaces and storing the information Interface, Subnet, Netmask and Broadcast addresses.
The changes are as follows:
- Change 1 - Created a new file for calculating subnet of the Local Area Network
How to Run
pip install psutils / pip install requirements.txt python3 subnet_calculator.py
in the repository
- [x] Made no changes that degrades the functioning of the repository
- [x] Gave each commit a better title (unlike updated README.md)
in the PR
- [x] Followed the format of the pull_request_template
- [x] Made the Pull Request in a small level (for the creator's wellfare)
- [x] Tested the changes you made
Thank You, Chandan