Scalc is a simple command-line subnet calculator. It can be used to generate markdown tables of subnet information.
- Navigate into the project directory:
cd subnet-calculator
- Install the module:
pip install .
- Run the command-line tool:
❯ scalc --help Usage: scalc [OPTIONS] IP_ADDRESS ╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────────────╮ │ * ip_address TEXT IP address. [default: None] [required] │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────╮ │ --version -v Show version. │ │ --slash-notation -sn INTEGER Slash notation. Overrides --subnets. [default: 24] │ │ --subnets -s INTEGER Number of subnets. [default: 2] │ │ --output-format -of TEXT Output format. Supported formats: terminal [default: terminal] │ │ --help Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- Example output for
scalc 193.64.33.0 -s 4
:Subnet Network Address Slash Notation First Usable IP Address Last Usable IP Address Broadcast Address 1 193.64.33.0
/26
193.64.33.1
193.64.33.62
193.64.33.63
2 193.64.33.64
/26
193.64.33.65
193.64.33.126
193.64.33.127
3 193.64.33.128
/26
193.64.33.129
193.64.33.190
193.64.33.191
4 193.64.33.192
/26
193.64.33.193
193.64.33.254
193.64.33.255
- Subnet /24-/32 notation IP address
- Generate markdown tables of subnet information
- ...
- Calculate supernetting data /23-/8 notation IP address
- Export subnet information to files
- ...
Feel free to create a pull request and add some new features or create an issue and I'll see to it when I can. Any help is appreciated.