- Home
- Skills
- APIs & Backend
- Subnet Calculator
Works with the AI Agents you already use
Subnet Calculator
Calculate IPv4/IPv6 subnets, perform VLSM planning, and audit IP spreadsheets for overlaps using RFC-compliant logic.
$1
Subnet Calculator
Example session with this skill installed
Calculate a VLSM plan for 172.16.0.0/22 with these requirements: Engineering (200 hosts), Sales (100 hosts), Wi-Fi (500 hosts), and DMZ (10 hosts).
- Read your context and instructions
- Compiled the subnet calculator
I have calculated the Variable Length Subnet Masking (VLSM) plan for the 172.16.0.0/22 block. The allocations are ordered by size to maximize address space efficiency and prevent overlaps.
VLSM Subnet Plan for 172.16.0.0/22
| Segment | Required | Allocated | CIDR | Network Address | Usable Range | Broadcast | Wasted |
|---|---|---|---|---|---|---|---|
| Wi-Fi | 500 | 510 | /23 | 172.16.0.0 | 172.16.0.1 - 172.16.1.254 | 172.16.1.255 | 10 |
| Engineering | 200 | 254 | /24 | 172.16.2.0 | 172.16.2.1 - 172.16.2.254 | 172.16.2.255 | 54 |
| Sales | 100 | 126 | /25 | 172.16.3.0 | 172.16.3.1 - 172.16.3.126 | 172.16.3.127 | 26 |
| DMZ | 10 | 14 | /28 | 172.16.3.128 | 172.16.3.129 - 172.16.3.142 | 172.16.3.143 | 4 |
Summary Statistics:
- Total Hosts Requested: 820
- Total Hosts Allocated: 904
- Remaining Free Space: 172.16.3.144/28, 172.16.3.160/27, 172.16.3.192/26
Next steps
- Update your core router interface descriptions with these network addresses.
- Configure your DHCP scopes using the usable range defined for each segment.
- Save this plan to a CSV file to use for future overlap auditing.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual subnetting leads to overlapping ranges and wasted address space. This skill provides precise IP calculation and planning to eliminate routing errors before they hit your infrastructure.
What it does
- Address calculation provides the network, broadcast, usable IP range, and host count for any IPv4 or IPv6 CIDR block.
- Equal splitting divides a larger block into a specific number of equal-sized subnets.
- VLSM planning calculates Variable Length Subnet Masking based on specific host requirements, ordering from largest to smallest to minimize waste.
- Route summarization aggregates a list of individual routes into the smallest possible set of supernets.
- Overlap auditing scans existing IP plans in CSV format to detect collisions, misaligned network addresses, and RFC boundary violations.
How it works
- Analyze an existing CIDR block or IP address to verify its properties and host capacity.
- Execute a split or VLSM command by providing a base block and host requirements.
- Validate an entire inventory by uploading a CSV of names and CIDRs for a full conflict audit.
- Summarize multiple specific routes into optimized supernet masks for routing tables.
Frameworks & tools
Built on Python 3 using the standard ipaddress library for RFC-compliant logic. It processes data via CLI commands and CSV file inputs.
Why this beats prompting it yourself
LLMs frequently hallucinate binary math and IP boundaries, especially with large VLSM sets or IPv6. This skill uses the Python ipaddress module to ensure every network address and host range is mathematically perfect and RFC-compliant.
Use cases
- Allocate address space for new VPCs or physical sites using VLSM.
- Audit a messy CSV spreadsheet of VLANs for hidden overlaps.
- Consolidate fragmented routing tables into clean supernet blocks.
- Verify if a specific host IP is correctly contained within a destination subnet.
Known limitations
Does not support non-CIDR notation (like wildcard masks). Audit requires CSV files to follow specific column headers (name, cidr).
Does not support non-CIDR notation or wildcard masks. Audit functionality requires CSV input with specific name and cidr column headers.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 month ago