Post

PVE LXC Tag

This script automatically adds IP address as tags to LXC containers or VM's using a systemd service. The service also updates the tags if a LXC/VM IP address is changed.

PVE LXC Tag

Installation

Default install:

1
bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/tools/pve/add-iptag.sh)"

Configuration

Config file:

1
/opt/iptag/iptag.conf

Notes

Execute within the Proxmox shell
Configuration: nano /opt/iptag/iptag.conf. iptag Service must be restarted after change. See here for full documentation: https://github.com/community-scripts/ProxmoxVE/discussions/5790
The Proxmox Node must contain ipcalc and net-tools. apt-get install -y ipcalc net-tools
You can execute the ip tool manually with iptag-run

This post is licensed under CC BY 4.0 by the author.