Skip to content

Subnetter - A powerful command-line tool for IP subnetting and VLSM calculations, written in Python. Includes table output support using tabulate. Also check out the SubNetter Android app!

License

Notifications You must be signed in to change notification settings

0xShakhawat/SubNetter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SubNetter: A Powerful Subnetting and VLSM Calculator

Python License: MIT

Subnetter is a command-line tool written in Python that simplifies subnet calculations and VLSM (Variable Length Subnet Masking) design. Whether you're a network engineer, IT professional, or student learning about networking, SubNetter provides the tools you need to work with IP addresses and subnets efficiently.

Features

  • Subnet Calculation: Calculate subnet mask, network address, broadcast address, usable IP range, and more for a given network address in CIDR notation.
  • VLSM (Variable Length Subnet Masking): Design and allocate subnets of varying sizes based on specific host requirements.
  • Table Output: Display VLSM results in an organized table format using the tabulate package (optional).
  • Error Handling: Provides clear error messages for invalid inputs or insufficient address space.

Installation

  1. Prerequisites: Make sure you have Python 3.6 or higher installed on your system.
  2. Install tabulate (optional): If you want to use table output, install the tabulate package:
    pip install tabulate
  3. Clone the Repository:
    git clone https://github.com/0xShakhawat/subnetter.git

Usage

python3 subnetter.py <network_address> [-s <subnet_host_counts>] [-t]
  • <network_address>: The base network address in CIDR notation (e.g., 192.168.1.0/24).
  • -s <subnet_host_counts> (optional): A comma-separated list of required host counts for each subnet (for VLSM calculations).
  • -t (optional): Display the VLSM results in a table format (requires the tabulate package).

Examples:

  • Calculate a single subnet:

    python3 subnetter.py 192.168.1.0/24
  • Calculate VLSM subnets:

    python3 subnetter.py 192.168.1.0/24 -s 60,40,20,10,5,2
  • Calculate VLSM subnets and display results in a table:

    python3 subnetter.py 192.168.1.0/24 -s 60,40,20,10,5,2 -t

Want Even More Features?

Check out the Subnetter app on the Play Store!

SubNetter version

https://play.google.com/store/apps/details?id=me.shakhawat.subnetter

The SubNetter app offers:

  • User-Friendly Interface: A graphical user interface for easier input and calculations.
  • Additional Tools: Includes a IP Class Detector, IP to Binary, Base Converter, CIDR Notation Converter, Wildcard Mask Calculator, Ping, and Traceroute tools.
  • Subnetter Academy: Interactive lessons and quizzes to help you master networking fundamentals.

get it on play store

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

  • Shakhawat Hossain (@0xShakhawat)

Let me know if you have any questions!

About

Subnetter - A powerful command-line tool for IP subnetting and VLSM calculations, written in Python. Includes table output support using tabulate. Also check out the SubNetter Android app!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages