agentleFS
gg1igg1i/agenticnet/skills/ip-addressing/SKILL.md

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.

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
  1. Very specific:

    Call subnet_calculate(cidr=...) (available in both solve_lab and advanced) to verify network_address, netmask, wildcard_mask, …

    line 15
  2. Very specific:

    Loopbacks (Loopback0): Use /32 host masks (255.255.255.255) from a dedicated loopback supernet for OSPF router IDs and management.

    line 29
  3. Very specific:

    Point-to-Point Links: Use dedicated /30 blocks (never reuse LAN subnets on WAN/transit links).

    line 30
  4. Very specific:

    Use host_configure with either dhcp=True or explicit ip_address, subnet_mask, and default_gateway.

    line 38
  5. Very specific:

    Always verify that default_gateway lies inside the host's own subnet (ip & mask == gateway & mask).

    line 39

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

IP Addressing & VLSM Design

Produce conflict-free, deterministic addressing plans before configuring interfaces or DHCP pools.

1. Addressing Workflow

  1. Calculate Subnets Deterministically:
    • Call subnet_calculate(cidr=...) (available in both solve_lab and advanced) to verify network_address, netmask, wildcard_mask, broadcast_address, usable_hosts, first_usable, and last_usable. Never do mental binary math for non-trivial prefixes.
  2. VLSM Allocation (vlsm_plan in advanced, or manual subnet_calculate loop in solve_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 -> 254 usable hosts
      • /25 -> 126 usable hosts
      • /26 -> 62 usable hosts
      • /27 -> 30 usable hosts
      • /28 -> 14 usable hosts
      • /29 -> 6 usable hosts
      • /30 -> 2 usable hosts (standard Cisco point-to-point transit links; avoid /31 unless hardware/PT IOS build explicitly supports RFC 3021).
  3. Standard Address Assignment Convention:
    • Default Gateways (Router / SVI): Consistently assign first_usable (e.g. .1) or last_usable across the entire lab.
    • Infrastructure / Switches / Servers: Reserve a contiguous low block (e.g., .1–.10) via ip dhcp excluded-address <start> <end> before defining DHCP pools.
    • Loopbacks (Loopback0): Use /32 host masks (255.255.255.255) from a dedicated loopback supernet for OSPF router IDs and management.
    • Point-to-Point Links: Use dedicated /30 blocks (never reuse LAN subnets on WAN/transit links).

2. IPAM Validation & Host Configuration

  • In advanced profile:
    • Pass register_pools=True to vlsm_plan to persist pools in project IPAM.
    • Record interface IPs with address_allocate, run address_validate to catch duplicate IPs, overlapping pools, or out-of-subnet assignments, and export documentation with ipam_report.
  • On End Devices (PC-PT, Laptop-PT, Server-PT, Printer-PT):
    • Use host_configure with either dhcp=True or explicit ip_address, subnet_mask, and default_gateway.
    • Always verify that default_gateway lies inside the host's own subnet (ip & mask == gateway & mask).

3. IPv6 Notes in Packet Tracer

  • subnet_calculate and vlsm_plan support IPv6 prefix calculations.
  • AgenticNet's IOSGenerator targets IPv4; if a Packet Tracer lab requires IPv6 (ipv6 unicast-routing, ipv6 address ..., OSPFv3), push verified commands via console_execute and validate with show ipv6 interface brief / show ipv6 route.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.