Network and IPAM: IP address pools and ranges
PxVault's IPAM (IP address management) hands out the IP addresses of your machines. You declare IP pools, add address ranges to them (a subnet with its gateway, DNS, VLAN and bridge), then attach each pool to one or more hypervisors. When you create a VM or an LXC container, PxVault takes a free address from these ranges and configures it in Proxmox.
PxVault is the single source of truth for knowing which address is free. A regular reconciliation compares what PxVault believes with what is actually configured in Proxmox.
Everything happens in the Network / IPAM menu.
Important: IPAM manages IPv4 addresses only.
Understanding the concepts
| Concept | What it is |
|---|---|
| IP pool | A group of ranges, attached to one or more hypervisors. Type Public or Private. |
| Address range | A subnet (CIDR, interval or single IP) with its Gateway, DNS Server, VLAN ID and Proxmox Bridge. |
| Address | An IP from the range, with a status: Available, Reserved or Assigned. |
The statuses of an address:
- Available: free, can be given to a new machine.
- Reserved: set aside. Either by you, or by PxVault while a machine is being created, or automatically because the address already responds on the network.
- Assigned: used by a known machine (VMID and hypervisor).
Creating an IP address pool
- Open Network / IPAM.
- Click Create Pool.
- Fill in the Create IP Pool form:
| Field | Purpose |
|---|---|
| Pool Name | Unique name, for example "Production Network". A name already in use is refused. |
| Type | Public or Private. Public pools also serve as the public IP reserve for VPC floating IPs. |
| Description | Free text. |
| Assign to Hypervisors | Click each hypervisor that will be able to draw from this pool. |
- Click Create Pool.
Warning: a pool with no hypervisor is never used when creating a machine. If creation reports "No IP address available for this hypervisor. Please add IPs in IPAM or assign a pool to this hypervisor.", check this box first.
Choosing the pool used first (default pool)
When several pools are attached to the chosen hypervisor, PxVault takes the lowest free address from the pool with the best priority for that hypervisor. To force a pool, choose it in Settings → IPAM → Default pool (search by name): it then comes before all the others, and PxVault falls back to the priority order only once this pool is full.
The default pool is only a preference: it is used only for a hypervisor it is attached to, never if it belongs to a VPC, and it is ignored when the creation itself targets a pool (creation in a VPC, public IP). The IP preview shown before creation follows the same rule.
From the Cards view, a pool's menu also offers Edit Pool, Duplicate (creates "<name> (Copy)" with the same type and the same hypervisors, but without the ranges) and Delete Pool.
Adding an address range
- In Network / IPAM, click a pool to open its page.
- Click Add Range.
- In the Single Range tab, fill in:
| Field | Example | Purpose |
|---|---|---|
| IP Range / CIDR | 192.168.1.0/24, 192.168.1.50-192.168.1.100 or 192.168.1.50 |
Required. A CIDR creates all host addresses (without the network address or the broadcast; a /31 gives its two addresses, a /32 its single address). An interval goes from lowest to highest. |
| Gateway | 192.168.1.1 |
Gateway given to machines (an IPv4 address). It is never assigned to a machine. |
| DNS Server | 8.8.8.8 |
DNS given to machines. |
| VLAN ID | 100 |
VLAN of the subnet, from 1 to 4094. |
| Bridge | vmbr1 |
Proxmox bridge the machine's network card is plugged into. |
- Click Add Range.
Warning: a large range creates many rows at once. A range holds at most 65,536 addresses (a
/16): beyond that, it is refused; split it into several ranges. A range also cannot overlap another range in the same pool ("… overlaps range … of this pool"). Two different pools can share a subnet, unless they serve the same hypervisor with the same Bridge and the same VLAN: the two pools could then assign the same address on the same network, and the range is refused ("… overlaps a range of another pool on the same hypervisor and network …"). A bridge or VLAN left empty counts as "the default bridge" and "no VLAN". To share a subnet on the same hypervisor, give each range a different bridge or VLAN. The same check applies when you change a range's bridge or VLAN, or when you attach a pool to a new hypervisor.
A range's CIDR cannot be changed after creation. Edit Range only changes the Gateway, DNS Server, VLAN ID and Bridge. To change the subnet, delete the range and create it again.
Checking a range's network (will machines have network access?)
A range can be perfectly valid for IPAM and still unusable: a misspelled bridge, a gateway 10.0.0.1 announced on a vmbr1 that only carries 10.10.0.1/24, and so on. The machine is created without error, but has no network. To find out before creating:
- Open the pool, then, on the range's card, open the ⋯ menu.
- Click Check network.
The window queries each hypervisor attached to the pool (and each node of a cluster) and shows, per node, a list of findings, the most serious first. Check again reruns the check. Nothing is changed and nothing is blocked: it is advice only.
What PxVault always checks, through the Proxmox API:
| Finding shown | Severity | Meaning |
|---|---|---|
| "Bridge … does not exist on …" | Error | The range's Bridge does not exist on this node (typo, name from another node). Machines will have no network. |
| "Bridge … exists on … but is not active." | Warning | The bridge is declared but not applied on the node. |
| "… carries the gateway … on …: this node is the router." | OK | The node itself carries the range's gateway. |
| "… has … on …: an external router must own the gateway …" | Information | The node has another address in the subnet: an external router must carry the gateway. |
| "… on … carries …, outside …: check the range's network and gateway." | Warning (private networks) | The bridge carries a different subnet from the range: the classic case of a range entered with the wrong network. |
| "… on … carries no address in …: normal for a bridged network…" | Information | Normal for a bridged public network (the gateway is at the provider): the API simply cannot say more. |
| "… is an SDN VNet…" | Information | The bridge is a Proxmox SDN VNet, which cannot be inspected from the node's network list. |
What PxVault checks in addition when the hypervisor's SSH access is enrolled (see Adding a hypervisor), from the node itself:
- does the gateway respond? An ARP request is sent on the bridge (on the bridge's VLAN interface if the range has a VLAN ID). "The gateway … does not answer on … - the machine will probably have no network." is a warning;
- when the node is itself the gateway, is IP forwarding enabled? "… is the gateway but IP forwarding is off (net.ipv4.ip_forward=0)" is a warning.
What cannot be checked is reported as "Not verified on …" with the reason (SSH access not enrolled, node agent too old, node offline, timeout, etc.): it is never an error. On a cluster, the SSH check only covers the node reached through the hypervisor's address; the other nodes are checked through the API only.
Tip: the same check runs by itself in the creation forms (see Creating machines). To fix it, see The VM has no network.
Importing several ranges at once
The Bulk Import tab accepts up to 50 ranges per import, in the CIDR|Passerelle|DNS format, separated by a comma or a line break:
192.168.1.0/24|192.168.1.1|8.8.8.8
10.0.0.50-10.0.0.100|10.0.0.1|1.1.1.1
Then click Import N Range(s). Bulk import sets neither the VLAN nor the bridge: complete them afterwards with Edit Range.
Adding addresses to an existing range
Select the range, then click Add IPs. You can enter an IP (192.168.1.50), an interval (192.168.1.50-192.168.1.60) or a CIDR (10.0.0.0/28). Addresses already present are skipped. All addresses must belong to the range's subnet: a single address outside it makes the whole addition refused ("Address … is outside range …"), because it would be assigned with the gateway, bridge and VLAN of another network.
If the range list shows "N IP(s) in this range do not match its network pattern", some addresses, added before this check existed, fall outside the declared subnet: review them.
Viewing and editing an address
On a pool's page, click a range: the grid shows its addresses page by page (250 by default, adjustable at the bottom of the grid), because a /16 range holds 65,536 of them. To find an address, type in Search IP, hostname or VMID...: the search covers the whole range, not just the page shown. The All, Available, Reserved and Assigned buttons under the grid serve as both legend and filter. Select all checks the addresses on the page shown. The Export CSV button copies the whole range to the clipboard (it is read in batches when you click).
Click an address to open its details. You can change its Status, Hostname and Description there. For an assigned address, the details show Assigned to VM: and Since:.
Reserving an address
To make sure an address is never handed out automatically (physical equipment, VIP, address promised to a customer):
- Open the pool, then the range.
- Click the address.
- Choose the Reserved status, add a Hostname and a Description (for example "2nd floor printer").
- Click Save.
An address reserved by hand (with no associated machine) is never released by reconciliation. Only exception: an address reserved automatically because another VM was using it in Proxmox ("Auto-reserved: in use on Proxmox by VM …") is released when that VM is deleted, or when two consecutive complete reconciliations no longer see it in Proxmox (never if a hypervisor was unreachable during reconciliation). Editing such an address by hand turns it into a manual reservation. It stays reserved until you set it back to Available.
How an address is assigned when a machine is created
In the VM or LXC creation form, the IP Address field offers two modes (see Creating machines):
- Auto: PxVault shows the next free IP in advance, followed by "(from IPAM)". If nothing is free, the form shows No IPs available for this hypervisor.
- Manual: you enter the address. PxVault checks it as you type and shows a message in English:
IP is available,Assigned to VMID …,Already used by VM … (…),IP responds to pingorIP is in use.
In Auto mode, PxVault:
- looks, in the pools attached to the chosen hypervisor, for Available addresses starting with the lowest (the gateway is always excluded);
- tests each candidate on the network (ping then arping, run from the hypervisor when its SSH access is enrolled);
- if an address responds, sets it to Reserved with the description "Auto-reserved: IP responded to ping at …", then tries the next one;
- checks that the address is not already configured on another machine in Proxmox:
- for a VM, it reserves it ("Auto-reserved: in use on Proxmox by VM …") and tries another address, up to 5 times;
- for an LXC, creation stops with the message "IP … is already used by …";
- applies the range's address, gateway, DNS and bridge to the machine.
The address is first Reserved for the new machine, then becomes Assigned at the next reconciliation, once Proxmox shows it on the machine. If creation fails, the address is released.
Tip: pools created for a VPC are reserved for the members of that VPC. A machine created outside a VPC never takes an address from them. See VPC and firewall.
When you delete a machine from PxVault, its address becomes Available again immediately.
Reconciliation with Proxmox
Reconciliation compares IPAM with the actual configuration of machines in Proxmox. It reads the static IPs declared in Proxmox: ipconfigN (cloud-init) for VMs, netN for LXCs. IPs obtained by DHCP or configured only inside the guest system are not seen.
On each run, it:
- sets to Assigned any managed address that Proxmox shows on a machine, and updates the VMID and hostname;
- releases an Assigned address whose machine no longer exists, or no longer uses that address, after the orphaned IP grace period (20 minutes by default);
- releases a Reserved address for a machine that was never created, after the reserved IP grace period (60 minutes by default);
- reports without changing anything the conflicts: the same IP on several machines in Proxmox, an IP reserved or assigned twice in the database, a machine with several assigned IPs;
- lists IPs found in Proxmox but absent from all pools (Unmanaged Proxmox IPs).
Frequency
By default, reconciliation runs every hour. You can set the frequency and delays in Settings → IPAM:
| Setting | Default | Purpose |
|---|---|---|
| Reconciliation Interval | 60 minutes | Reconciliation frequency (minimum 1 minute). |
| Reserved IP Grace Period | 60 minutes | Delay before releasing an IP reserved for a machine that does not exist. |
| Orphaned IP Grace Period | 20 minutes | Delay before releasing an assigned IP whose machine has disappeared. |
Getting notified when a pool fills up
Set Settings → IPAM → Pool Usage Alert Threshold (90% by default, 0 to disable). The used share of a pool counts its Reserved and Assigned addresses. At the end of each reconciliation (scheduled or manual):
- a pool that reaches or exceeds the threshold is marked Usage high in Network / IPAM (Cards and List views);
- the IP Pool Usage High event (
ipam.pool.usage.high) is written to the important actions log only once per crossing, not at each reconciliation. It is re-armed when the pool drops back below the threshold. Check it in Settings → Notifications to receive it by webhook or email.
The marker on the IPAM page follows the threshold immediately; the notification waits for the next reconciliation (every hour by default).
Running a manual reconciliation
- Open Network / IPAM.
- Click Sync IPAM (IPAM administrator permission required).
- Read the IPAM Sync Report: counters Conflicts, Warnings, Errors, Duration, then the sections Duplicate IPs in Proxmox, DB Duplicate Addresses, DB Duplicate VM Assignments, Unmanaged Proxmox IPs and Hypervisor Query Failures.
If a reconciliation is already running, the manual request waits up to 30 seconds, then is refused: try again a little later.
Importing unmanaged IPs
In the Unmanaged Proxmox IPs section of the report, check the addresses (or Select all), then click Add selected to IPAM (N). Each address is placed in an existing range that contains it. If no range fits, PxVault places it in an automatically created pool, "Imported Unmanaged Proxmox IPs".
Releasing a stuck address
| Situation | What to do |
|---|---|
| Machine deleted outside PxVault | Wait for the next reconciliation (after the grace period), or click Sync IPAM. |
| Reserved address with "Auto-reserved: in use on Proxmox by VM …" | Nothing to do: it is released when the VM is deleted from PxVault, or by reconciliation after two runs where Proxmox no longer shows the address. |
| Reserved address with "Auto-reserved: IP responded to ping…" | A device was responding on this IP. Check it on the network, then set the address back to Available. |
| Address wrongly reserved or assigned | Open the address, choose Available, then Save. |
Warning: if the IP is still configured on a machine in Proxmox, the next reconciliation will set it back to Assigned. Fix the machine in Proxmox first.
Deleting a range or a pool
- Delete Range erases the range and all its addresses, including assigned addresses.
- Delete Pool erases the pool, its ranges and all its addresses. A VPC's pool cannot be deleted here (deletion is refused): it disappears with its VPC, when you delete the VPC.
- Delete selected (in the grid) erases the checked addresses.
Nothing is changed in Proxmox: machines keep their addresses, which will then appear as Unmanaged Proxmox IPs.
List, Cards and Topology views
The Network / IPAM page offers three views: List (table with search and pagination), Cards (one card per pool with its Total, Free and Used counters) and Topology (tree of hypervisors, pools, ranges and assigned IPs).
phpIPAM and PowerDNS mirrors
PxVault can copy its IPAM into your own phpIPAM and publish DNS records in PowerDNS. These are write-only mirrors: PxVault remains the sole authority, and a machine is created even if phpIPAM or PowerDNS is unreachable.
- Configuration: Settings → Integrations, phpIPAM Mirror and PowerDNS Mirror cards (Test connection, Sync now).
- Status: on Network / IPAM, badges show Mirror in sync, Mirror syncing (N) or Mirror behind, and DNS in sync, DNS syncing (N) or DNS behind.
For detailed setup, read phpIPAM integration and PowerDNS DNS mirror.
Access and permissions
A user only sees the pools allowed by their rights. If they get "You don't have access to this IP pool", an administrator must add this pool to their allowed pools. See Users and access.
Check network only requires read access to IPAM (ipam:read), like the next-IP preview. A user limited to certain hypervisors only sees the findings for their hypervisors.