Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subnet Calculator for Local-Area-Network(LAN) #264

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ChandanSouL
Copy link

@ChandanSouL ChandanSouL commented Aug 31, 2024

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

  • Made no changes that degrades the functioning of the repository
  • Gave each commit a better title (unlike updated README.md)

in the PR

  • Followed the format of the pull_request_template
  • Made the Pull Request in a small level (for the creator's wellfare)
  • Tested the changes you made

Thank You,
Chandan

Copy link
Collaborator

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are already a subnet calculator added in the list. Could you please close this one or make it differentiate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants