Skip to content

elyacoub9/subnet-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

generate the following:

  • Class Type
  • address Type
  • Subnet Mask
  • Network ID
  • Broadcast ID
  • First Address
  • Last Address.
  • Number of Addresses
  1. Clone this repository:

    git clone https://github.com/elyacoub9/subnet-info.git
  2. Change to the project directory:

    cd subnet-info

The script will provide information about the specified IP address and subnet.

run your code

   python3 subnet-info.py 10.10.10.0 23

Output

------------------------------------------------------------
                       10.10.10.0/23
------------------------------------------------------------
 class                        |            class A
 type [10.10.10.0]            |            private
 subnet mask                  |         255.255.254.0
 network id                   |           10.10.10.0
 broadcast id                 |          10.10.11.255
 first address                |           10.10.10.1
 last address                 |          10.10.11.254
 no of addresses              |              510

About

i was practicing python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages