Code Monkey home page Code Monkey logo

ipv4_subnet_calc's Introduction

ipv4_subnet_calc

Subnet Calculator

Type: Terminal Application

Description

Calculates subnets for a given ip and subnetmask. Populates each created subnets with the subnet address, broadcast address, and list all assignable IP addresses. All output is written and saved in a user specified destination txt file.

Handles Class A, B, C networks.

A few things to note:

  • Python 3 needs to be installed and added to Path

Instructions:

Download

  • Using CLI, navigate to the folder you wish to download the application and run:
    git clone https://github.com/Node0o1/ipv4_subnet_calc.git

Setup

  • after downloading, use the CLI to navigate into the directory
    • No dependancies.

Run

  • From within the calc_ipv4_subnet directory using CLI:

    • python file.py param1 param2 param3 param4
    • params=(starting ip, subnetmsk, num of borrowed bits, output_file)
    • example:
      python ipv4_subnet_calc.py 192.168.0.0 255.255.0.0 4 ./output_file.txt
  • you may omit the parameters in CLI and be prompted for each param individually.

    • example:
      python ipv4_subnet_calc.py

Images

With parameters:

Screenshot 2024-03-08 141938


Or without parameters:

Screenshot 2024-03-08 141519


File contents:

output file contents

ipv4_subnet_calc's People

Contributors

node0o1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.