A utility for managing and analyzing network subnets with advanced CIDR operations
Reading time: 2 minutes.
subnetctl
A web-based utility for managing and analyzing network subnets with advanced CIDR operations, designed for DevOps engineers and network administrators.
What is subnetctl?
subnetctl is a web-based tool that simplifies network subnet management, CIDR calculations, and network analysis. It’s particularly useful for cloud infrastructure management, IP address planning, and network troubleshooting.
Key Features
- CIDR Operations: Calculate subnets, supernets, and network boundaries
- IP Address Management: Validate, convert, and analyze IP addresses
- Network Planning: Plan and optimize network allocations
- Cloud Integration: Generate Terraform and CloudFormation network configurations
- Visualization: Generate network diagrams and subnet maps
- Modern Web Interface: Clean, responsive UI with real-time calculations
Installation
Option 1: Docker (Recommended)
Prerequisites
- Docker and Docker Compose installed on your system
Quick Start with Docker
- Clone the repository:
1
2
|
git clone https://github.com/Lforlinux/subnetctl.git
cd subnetctl
|
- Build and run with Docker Compose:
1
|
docker-compose up --build
|
- Open your browser and navigate to
http://localhost:3000
Option 2: Local Development
Prerequisites
- Node.js (version 16 or higher)
- npm or yarn
Installation
- Clone the repository:
1
2
|
git clone https://github.com/Lforlinux/subnetctl.git
cd subnetctl
|
- Install dependencies:
- Start the development server:
- Open your browser and navigate to
http://localhost:5173
Usage
Basic Operations
- Enter CIDR notation (e.g., 192.168.1.0/24) in the input field
- View subnet information including network, broadcast, and host count
- Calculate subnet boundaries and available IP ranges
- Generate network visualizations and diagrams
Advanced Features
- Network Planning: Plan complete network infrastructures with multiple subnets
- Overlap Detection: Identify and resolve network conflicts
- Cloud Integration: Generate Terraform and CloudFormation configurations
- Bulk Analysis: Process multiple CIDR blocks simultaneously
Use Cases
Cloud Infrastructure
- Plan AWS VPC subnets and CIDR blocks
- Generate Terraform network configurations
- Validate network designs before deployment
Network Troubleshooting
- Identify IP address conflicts
- Analyze network overlaps
- Validate routing configurations
IP Address Management
- Track IP address allocations
- Plan network expansions
- Optimize network utilization
Tech Stack
- React 18: Modern React with hooks
- Vite: Fast build tool and dev server
- Tailwind CSS: Utility-first CSS framework
- Custom Network Logic: Proprietary CIDR calculation algorithms
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
)
- Commit your changes (
git commit -m 'Add some amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Live Demo: https://l4linux.com/subnetctl/
Source Code: https://github.com/Lforlinux/subnetctl