> For the complete documentation index, see [llms.txt](https://docs.netmap.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.netmap.dev/use-netmap/ipam.md). Agents can also search and read this documentation through its [MCP server](https://docs.netmap.dev/~gitbook/mcp).

# IPAM

The IPAM section separates **Internal networks** from **External IPs** in its sidebar navigation. Internal networks manages summary cards, conflict review, VLAN suggestions, subnets, reservations, DHCP leases, and address maps. External IPs keeps a register of public addresses; see [External IPAM](https://docs.netmap.dev/use-netmap/external-ipam.md). Write actions require `ipam_write`.

## Summary And Subnet List

<figure><picture><source srcset="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-44a66628cd0d0ded13e06fb75582b3ece942c186%2Fipam-address-space-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-45aeb35e01730534368f9e50ee7fe475cf22264a%2Fipam-address-space-light.png?alt=media" alt="The IPAM Address space view for Contoso Ltd, with a Used and Free gauge and Busiest Subnets including Auckland OT/Plant and Sydney HQ Corp." width="800"></picture><figcaption><p>Address space and busiest subnets for Contoso Ltd.</p></figcaption></figure>

The summary reports subnet count, total/used/free addresses, utilisation, conflicts, imported leases, and reservations. Subnet rows can be searched, sorted, and inspected for CIDR, site/VLAN, gateway, DHCP range, DNS, device/lease/reservation counts, and utilisation. Counting uses indexed IPv4/IPv6 membership, so large inventories do not require a full scan for every row.

Create an IPv4 or IPv6 subnet with CIDR, name, gateway, DHCP start/end, VLAN/group, site, DNS servers, and notes. Validation rejects malformed addresses, impossible ranges, overlaps, and conflicting gateway/DHCP/reservation values. IPv6 displays address space and membership, but very large ranges are represented through calculated counts rather than rendering every address.

Editing a subnet updates metadata and synchronises supported VLAN fields. Deleting requires confirmation and checks dependent reservations/assignments first; it does not silently delete unrelated devices or imported lease data.

The page opens with an **Address space** gauge (used and free hosts across all subnets) beside the summary cards. A **Busiest Subnets** card lists the five subnets with the highest utilisation, each with a usage bar and percentage. Chart choices are saved per user; see [Personal Chart Views](https://docs.netmap.dev/use-netmap/chart-views.md).

## Address Map And Allocation

<figure><picture><source srcset="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-d52aba128717aed8f5fef8513065f98591d8c671%2Fipam-subnet-hq-lan-dark.png?alt=media" media="(prefers-color-scheme: dark)"><img src="https://4241216552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgPqKPcA5Ik65L8fL0ntv%2Fuploads%2Fgit-blob-faec9f01357876b2bf07f9865690706851435ce0%2Fipam-subnet-hq-lan-light.png?alt=media" alt="The Sydney HQ Corp subnet 10.10.10.0/24 in IPAM, showing the usage bar and syd-prn-01.contoso.local at 10.10.10.40." width="800"></picture><figcaption><p>The Sydney HQ Corp subnet 10.10.10.0/24.</p></figcaption></figure>

Open a subnet to see its used, free, utilisation, gateway, and DHCP range figures, and a usage bar split into device, DHCP lease, reserved, gateway, and free addresses. The **All**, **Devices**, **DHCP**, **Reserved**, and **Free** tabs filter the addresses.

With **All** selected and up to 256 addresses, the subnet is shown as an address map: 16 square tiles per row, with the last-octet offset of each row and column numbers across the top. Each tile shows its last octet, and hovering or focusing a tile shows the full address, its status and any name, vendor or MAC; on phones the numbers are hidden and selecting a tile shows the same details. Tiles are coloured by status (device, DHCP lease, free DHCP pool, reserved, gateway, free, network/broadcast). Select a tile to show the address in the panel beside the map, with its status, name, MAC, and vendor; free addresses offer **Reserve this address** to users with `ipam_write`. Other filters and larger subnets use a table.

Subnets with more than 1,024 hosts are not enumerated address by address.

**Reserve next IP** in the subnet header finds the next free address and opens a prefilled reservation; nothing is held until you save it.

## Reservations

Create a single-IP reservation with address, label, MAC, notes, owner, expiry, and subnet. A range reservation accepts a validated start/end range and creates the supported records. A reservation holds an address but does not create an inventory device. Addresses remain immutable after creation; edit metadata or delete and recreate to move one.

Optional default expiry prefills 90 days. Expiry reminders require enablement, a lead time, and a saved notification method; delivery is one-time per expiry event. Delete expired reservations is a confirmed bulk operation with a result count.

Open an existing reservation and select **Convert to device** beside the close button to start with its label, address, MAC, and notes already filled in. NetMap then requires an explicit confirmation before replacing the reservation. On confirmation, the reservation is removed and the device is created atomically. The user needs both `topology_write` and `ipam_reservation_claim`; `ipam_write` is additionally required to enter through the reservation editor.

A custom role with claim/create access but without general IPAM editing receives **Convert to device** directly on the reservation row. Cancelling leaves the reservation untouched.

## Conflicts

Conflicts identify duplicate addresses, overlapping subnets, gateway/DHCP-range collisions, and reservation/lease/device disagreements. Open the source records from the conflict row, correct the underlying device/subnet/lease/reservation, then refresh. A conflict is not resolved by hiding it or deleting a current lease without understanding its source.

## DHCP Leases

Import supported plain-text lease exports from the DHCP server. Parsed fields include IP address, MAC, hostname, expiry, active state, and source. Preview/import reports accepted and rejected rows; duplicate/current records are updated according to the importer rather than creating a second active lease. **Clear imported leases** is destructive to imported rows only; re-import from the authoritative server when needed.

## VLAN Suggestions And Performance

Import VLAN/group ranges as subnet suggestions. Select the desired suggestions and review duplicates before creating rows. When several rows match a group by CIDR/VLAN, the canonical row already using the group CIDR wins, preventing unique-CIDR failures during metadata synchronisation.

## Troubleshooting

| Symptom                               | Likely cause                                         | Fix                                                                          |
| ------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------------------------------- |
| cannot create or edit                 | missing `ipam_write`                                 | update role permissions                                                      |
| CIDR rejected                         | malformed address, overlap, or special-purpose range | correct the CIDR and inspect conflicting subnets                             |
| unique-CIDR error after VLAN import   | duplicate matching subnet rows                       | retain the canonical row and merge/remove the duplicate                      |
| utilisation looks stale               | device/lease/reservation data changed                | refresh IPAM and re-import authoritative leases                              |
| address map or list is not exhaustive | large IPv4/IPv6 range                                | use filters/search and summary counts; do not expect every address to render |

## API Equivalents

* `/api/v1/ipam/summary`
* `/api/v1/ipam/subnets`
* `/api/v1/ipam/reservations`
* `/api/v1/ipam/dhcp-leases`
* `/api/v1/ipam/conflicts`
* `/api/v1/ipam/vlan-suggestions`

## Related Pages

* [Create An IP Reservation](https://docs.netmap.dev/how-to-guides/create-ip-reservation.md)
* [Import DHCP Leases](https://docs.netmap.dev/how-to-guides/import-dhcp-leases.md)
* [VLANs And Groups](https://docs.netmap.dev/use-netmap/vlans.md)
* [Locations](https://docs.netmap.dev/use-netmap/locations.md)
* [External IPAM](https://docs.netmap.dev/use-netmap/external-ipam.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.netmap.dev/use-netmap/ipam.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
