Hi, at the moment there's two ways to use ip addresses and subnets defined in the IPAM module to be used in templates as variables:
- when using VPNs like Wireguard <https://openwisp.io/docs/25.10/controller/user/wireguard.html> and Zerotier <http://openwisp.io/docs/25.10/controller/user/zerotier.html> - subnet division rules <https://openwisp.io/docs/25.10/controller/user/subnet-division-rules.html> Example of a subnet division rule: There's two type of rules right now: - Device: triggered when a new device is created - VPN: triggered when a VPN-client template is assigned to a device When the rule triggers it would automatically provision the desired amount of subnets and ip addresses, and make them available as variables to be used in the configuration. Manually creating IPs and Subnets doesn't have much benefits now. If you could describe your use case further it may help us. Were you expecting to be able to define subnets and ip addresses that you'd be able to then connect to templates or devices? Best regards Federico Capoano On Mon, 19 Jan 2026 at 18:08, 'Marten Lucas' via OpenWISP < [email protected]> wrote: > Hi, > > I am not sure I understand the IAM of OpenWisp correctly. > > I setup a subnet and created IPs for my local infra network (the IPs for > the switches). > > Now I want to Apply them to a template so that I don't rely on the > Configuration > variables. > But how do I get a secific IP in the template? > > > What I have is: > { > "type": "ethernet", > "name": "br_lan_172", > "addresses": [ > { > "proto": "static", > "family": "ipv4", > "address": "172.16.100.2", > "mask": 24 > } > ], > "device": "br-lan.172", > "delegate": false > } > > and in the IAM: > { "id": "93964498-70a0-4b00-9bab-0d7626473b87", "created": > "2026-01-18T18:55:12.126729Z", "modified": "2026-01-18T18:55:12.126729Z", > "ip_address": "172.16.100.2", "description": "switch-eg", "subnet": > "34dfeb04-2d55-453b-8e41-65901a3a48fb" }, > > 1) How do I connect the two ? > > 2) I have another template for static IPs in the network. Can I use IAM > for this template as well? I was hoping I can manage the IAM - IP entries > with the MAC and then they get applied to the template. > > Please appologize if I get the purpose of IAM wrong. I am fine with using > config variables but I don't wanna miss out if there is an easier way. > > thx for the help and the great project. > > regards > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion, visit > https://groups.google.com/d/msgid/openwisp/cc4b4fbd-8bac-4b60-9f97-e0ae1aca3f31n%40googlegroups.com > <https://groups.google.com/d/msgid/openwisp/cc4b4fbd-8bac-4b60-9f97-e0ae1aca3f31n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6Lv2atNuvfFr5KAs_FnhVtzJGKQJQCMULm4KybKr808Wg%40mail.gmail.com.
