subnet-calculator

Calculates IPv4 and IPv6 subnet details from CIDR inputs using Python MCP script.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/dgethings/netclaw --skill subnet-calculator-dgethings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: subnet-calculator
Source: https://github.com/dgethings/netclaw/tree/main/workspace/skills/subnet-calculator
Command: npx skills add https://github.com/dgethings/netclaw --skill subnet-calculator-dgethings

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

IPv4 and IPv6 subnet planning and validation, computing networks, masks, hosts, and adjacent subnets from CIDR inputs to simplify network design.

Core Features & Use Cases

  • IPv4 Subnet Details: network address, broadcast, netmask, wildcard mask, prefix length, host counts, first/last usable addresses, and nearby subnets.
  • IPv6 Subnet Details: compressed/exploded addresses, prefix length, address counts, and adjacent subnets for planning.
  • Auto-Detect IPv4/IPv6: automatically routes to the correct calculator based on input CIDR.
  • VLSM planning and ACL wildcard references: supports granular subnet sizing and wildcard mask generation for ACLs.

Quick Start

Calculate the subnet details for a CIDR, for example 10.1.1.0/24.

Frequently Asked Questions about subnet-calculator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate subnet details from a CIDR notation?

Calculating IPv4 and IPv6 subnet details requires a CIDR input, which the tool uses to automatically compute network addresses, broadcast addresses, netmasks, host counts, and adjacent subnets.

Can I generate an ACL wildcard mask for a specific IPv4 subnet?

Generating an ACL wildcard mask for an IPv4 subnet requires passing a CIDR input, which returns the corresponding wildcard mask alongside network address, broadcast, and host count metrics.

What is VLSM planning and how do I compute host counts for it?

VLSM planning uses variable-length subnet masks to allocate IP addresses efficiently, requiring exact host counts and usable address ranges computed directly from CIDR inputs to optimize network design.

Does the subnet calculator support both IPv4 and IPv6 dual-stack deployments?

Supporting dual-stack deployments requires calculating both IPv4 and IPv6 subnets, automatically routing CIDR inputs to the correct calculator to compute address counts, masks, and adjacent subnets.

Why do I need to compute adjacent subnets during network planning?

Computing adjacent subnets during network planning identifies the next available network blocks for sequential allocation, returning nearby subnet ranges calculated directly from the provided CIDR inputs.