Subnet Calculator for Local-Area-Network(LAN) #264
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
How to Run
pip install psutils / pip install requirements.txt
python3 subnet_calculator.py
in the repository
in the PR
Thank You,
Chandan