Skip to content

LXC networking: static IPs and DNS

playbooks/lxc_network.yml (Semaphore template lxc network, role pve_lxc_network) runs on every Proxmox node and, for every LXC on it:

  • turns ip=dhcp interfaces into static ones with the address the container has now (ip=<addr>/24,gw=10.0.3.1); stopped containers are skipped (address unknown);
  • sets nameserver: 10.0.3.100 10.0.3.101 (adguard01, adguard02).

--check only reports. On a running container Proxmox applies the IP live (same address, no interruption; the harmless "Address already assigned" message is expected). The nameserver change is often stored as pending and is written into the guest at its next restart (pct pending <id> shows new nameserver).

Run 2026-11-28: 23 interfaces converted, nameserver pending on 32 containers, unifi-protect-backup (node08, CT 105) skipped because it is stopped.

DHCP reservations on the gateway (10.0.3.1)

These addresses came from the UniFi gateway's DHCP pool. Give each one a Fixed IP on the gateway (UniFi Network → Client Devices → client → Settings → Fixed IP Address), otherwise the gateway can hand the address to another client once the old lease expires.

LXC IP MAC
immich 10.0.3.23 BC:24:11:69:CB:1A
immichremoteml 10.0.3.207 BC:24:11:5B:8A:59
esphome 10.0.3.138 BC:24:11:88:6F:48
chrony (node05) 10.0.3.89 BC:24:11:6C:E4:E2
grafana 10.0.3.116 BC:24:11:85:15:BF
prometheus 10.0.3.236 BC:24:11:18:3B:9B
homarr 10.0.3.145 BC:24:11:42:C9:28
xyops 10.0.3.149 BC:24:11:6F:CF:61
prometheus-alertmanager 10.0.3.122 BC:24:11:47:82:52
gluetun 10.0.3.109 BC:24:11:A9:FF:94
prometheus-pve-exporter 10.0.3.61 BC:24:11:14:95:5D
powerdns 10.0.3.140 BC:24:11:79:45:13
homelable 10.0.3.198 BC:24:11:A4:6B:9B
teleport 10.0.3.254 BC:24:11:1C:B4:4B
chrony (node08) 10.0.3.60 BC:24:11:F5:25:05
pve-ups 10.0.3.235 BC:24:11:96:9E:1D
apt-cacher-ng 10.0.3.150 BC:24:11:F5:1C:F4
Bazarrplus 10.0.3.205 BC:24:11:49:81:9C
clamav 10.0.3.69 BC:24:11:D8:46:7B
suggestarr 10.0.3.53 BC:24:11:1E:62:E6
lingarr 10.0.3.88 BC:24:11:49:60:86
semaphore 10.0.3.230 BC:24:11:D1:0A:4B
netbox 10.0.3.13 BC:24:11:71:FC:21