subnetctl

A utility for managing and analyzing network subnets with advanced CIDR operations

Published on Jan 03, 2025

Reading time: 2 minutes.


Built with


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

Prerequisites

  • Docker and Docker Compose installed on your system

Quick Start with Docker

  1. Clone the repository:
1
2
git clone https://github.com/Lforlinux/subnetctl.git
cd subnetctl
  1. Build and run with Docker Compose:
1
docker-compose up --build
  1. Open your browser and navigate to http://localhost:3000

Option 2: Local Development

Prerequisites

  • Node.js (version 16 or higher)
  • npm or yarn

Installation

  1. Clone the repository:
1
2
git clone https://github.com/Lforlinux/subnetctl.git
cd subnetctl
  1. Install dependencies:
1
npm install
  1. Start the development server:
1
npm run dev
  1. Open your browser and navigate to http://localhost:5173

Usage

Basic Operations

  1. Enter CIDR notation (e.g., 192.168.1.0/24) in the input field
  2. View subnet information including network, broadcast, and host count
  3. Calculate subnet boundaries and available IP ranges
  4. 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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