ip-addressing
Skill1 starsChanged 15 days agoMITView on GitHub
IPv4 and IPv6 CIDR subnetting, largest-first VLSM allocation, gateway and DHCP range planning, and IPAM conflict validation in AgenticNet.
In this repository8 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Call subnet_calculate(cidr=...) (available in both solve_lab and advanced) to verify network_address, netmask, wildcard_mask, …
- Very specific: line 29
Loopbacks (
Loopback0): Use /32 host masks (255.255.255.255) from a dedicated loopback supernet for OSPF router IDs and management. - Very specific: line 30
Point-to-Point Links: Use dedicated /30 blocks (never reuse LAN subnets on WAN/transit links).
- Very specific: line 38
Use host_configure with either dhcp=True or explicit ip_address, subnet_mask, and default_gateway.
- Very specific: line 39
Always verify that default_gateway lies inside the host's own subnet (ip & mask == gateway & mask).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
IP Addressing & VLSM Design
Produce conflict-free, deterministic addressing plans before configuring interfaces or DHCP pools.
1. Addressing Workflow
- Calculate Subnets Deterministically:
- Call
subnet_calculate(cidr=...)(available in bothsolve_labandadvanced) to verifynetwork_address,netmask,wildcard_mask,broadcast_address,usable_hosts,first_usable, andlast_usable. Never do mental binary math for non-trivial prefixes.
- Call
- VLSM Allocation (
vlsm_planinadvanced, or manualsubnet_calculateloop insolve_lab):- Always sort requirements largest-to-smallest (host count descending) and allocate aligned power-of-2 blocks so subnets never overlap.
- Account for router/SVI gateway + reserved servers/printers when sizing
required_hosts:/24->254usable hosts/25->126usable hosts/26->62usable hosts/27->30usable hosts/28->14usable hosts/29->6usable hosts/30->2usable hosts (standard Cisco point-to-point transit links; avoid/31unless hardware/PT IOS build explicitly supports RFC 3021).
- Standard Address Assignment Convention:
- Default Gateways (Router / SVI): Consistently assign
first_usable(e.g..1) orlast_usableacross the entire lab. - Infrastructure / Switches / Servers: Reserve a contiguous low block (e.g.,
.1–.10) viaip dhcp excluded-address <start> <end>before defining DHCP pools. - Loopbacks (
Loopback0): Use/32host masks (255.255.255.255) from a dedicated loopback supernet for OSPF router IDs and management. - Point-to-Point Links: Use dedicated
/30blocks (never reuse LAN subnets on WAN/transit links).
- Default Gateways (Router / SVI): Consistently assign
2. IPAM Validation & Host Configuration
- In
advancedprofile:- Pass
register_pools=Truetovlsm_planto persist pools in project IPAM. - Record interface IPs with
address_allocate, runaddress_validateto catch duplicate IPs, overlapping pools, or out-of-subnet assignments, and export documentation withipam_report.
- Pass
- On End Devices (
PC-PT,Laptop-PT,Server-PT,Printer-PT):- Use
host_configurewith eitherdhcp=Trueor explicitip_address,subnet_mask, anddefault_gateway. - Always verify that
default_gatewaylies inside the host's own subnet (ip & mask == gateway & mask).
- Use
3. IPv6 Notes in Packet Tracer
subnet_calculateandvlsm_plansupport IPv6 prefix calculations.- AgenticNet's
IOSGeneratortargets IPv4; if a Packet Tracer lab requires IPv6 (ipv6 unicast-routing,ipv6 address ..., OSPFv3), push verified commands viaconsole_executeand validate withshow ipv6 interface brief/show ipv6 route.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

