Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hasiotis/netsplit
Netsplit can help slice and dice your IP space
https://github.com/hasiotis/netsplit
Last synced: 10 days ago
JSON representation
Netsplit can help slice and dice your IP space
- Host: GitHub
- URL: https://github.com/hasiotis/netsplit
- Owner: hasiotis
- License: apache-2.0
- Created: 2023-12-23T12:25:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-11T22:09:38.000Z (10 months ago)
- Last Synced: 2024-04-24T20:28:15.982Z (7 months ago)
- Language: Python
- Size: 438 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Netsplit: Slice and dice your IP space
[![PyPi version](https://badge.fury.io/py/netsplit.svg)](https://pypi.org/project/netsplit/)
[![Build status](https://github.com/hasiotis/netsplit/workflows/Pull%20Request/badge.svg)](https://github.com/hasiotis/netsplit/actions?query=workflow%3A%22Pull+Request%22)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://github.com/hasiotis/netsplit/blob/master/LICENSE)## Installation
Install and update using:
```
pip3 install --user --upgrade netsplit
```## Usage
Here is a very simple network plan:
```
[netsplit]
description = "Global / Subnet"
network = "192.168.0.0/24"[plan]
options = { slots = 4 }
members = ["NetA", "NetB"]
```
We can render it with:
```
❯ netsplit plan -p examples/netsplit-simple.toml -r 2
╷ ╷ ╷ ╷
# │ Global / Subnet │ Subnet │ idx+ext/slots │ IPs
╶────┼───────────────────┼────────────────────────────────────┼───────────────┼─────╴
0 │ Global │ ................192.168.0.0/24 │ │ 256
1 │ Global / NetA │ ..................192.168.0.0/26 │ 1 / 4 │ 64
1 │ Global / NetB │ ..................192.168.0.64/26 │ 2 / 4 │ 64
1 │ Global / RESERVED │ ..................192.168.0.128/26 │ 3 / 4 │ 64
1 │ Global / RESERVED │ ..................192.168.0.192/26 │ 4 / 4 │ 64
╵ ╵ ╵ ╵
```
Make sure to check examples for complex network plans:![Multicloud Plan](/examples/img/netsplit-multicloud.png)
# Similar projects:
* [Visual Subnet Calculator](https://github.com/ckabalan/visualsubnetcalc)