https://github.com/parsabordbar/subnet_calculator
Calculator for calculating CIDR of requested sub-nets of Network from Provided IP.
https://github.com/parsabordbar/subnet_calculator
ip net network rust rust-lang subnet subnet-calculator terminal-based
Last synced: 4 months ago
JSON representation
Calculator for calculating CIDR of requested sub-nets of Network from Provided IP.
- Host: GitHub
- URL: https://github.com/parsabordbar/subnet_calculator
- Owner: ParsaBordbar
- Created: 2025-05-12T11:01:21.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-23T13:06:07.000Z (about 1 year ago)
- Last Synced: 2025-06-06T15:06:34.374Z (about 1 year ago)
- Topics: ip, net, network, rust, rust-lang, subnet, subnet-calculator, terminal-based
- Language: Rust
- Homepage:
- Size: 873 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

I wasn't good at allocating subnets So, I wrote it with rust!
What is this this tool exactly?
This Rust-based CIDR (Classless Inter-Domain Routing) Subnet Calculator is a command-line tool designed to help network administrators and IT professionals efficiently plan and allocate IP network subnets.

## Features
- Parse and analyze existing CIDR networks
- Calculate subnet masks dynamically
- Automatically determine optimal prefix lengths
- Support for multiple subnet allocations
- Detailed subnet information output
## Installation
### Run it Via Binnary
#### Linux
run the binnary
```bash
./subnet
```
#### Windows
just run the subnet.exe
### Build It yourself
#### Prerequisites
- Rust Programming Language (latest stable version recommended)
- Cargo (Rust's package manager)
```bash
git clone https://github.com/yourusername/cidr-subnet-calculator.git
cd cidr-subnet-calculator
```
### Build the Project
```bash
cargo build --release
```
### Run the Application
```bash
cargo run
```
## Key Concepts
- **CIDR Notation**: Represents IP networks using a compact format (`IP_ADDRESS/PREFIX`)
- **Prefix Length**: Determines the size of the network (smaller prefix = larger network)
- **Host Count**: The number of usable IP addresses in a subnet
## Planned Features
- [ ] Terminal User Interface (TUI) support
- [ ] More advanced network planning features
## License
Distributed under the MIT License. See `LICENSE` for more information.
---