diff options
Diffstat (limited to 'roles/pve-network/templates/vmbr0.nmconnection.j2')
| -rw-r--r-- | roles/pve-network/templates/vmbr0.nmconnection.j2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/pve-network/templates/vmbr0.nmconnection.j2 b/roles/pve-network/templates/vmbr0.nmconnection.j2 new file mode 100644 index 00000000..013acd6a --- /dev/null +++ b/roles/pve-network/templates/vmbr0.nmconnection.j2 @@ -0,0 +1,29 @@ +[connection] +id=vmbr0 +type=bridge +interface-name=vmbr0 +autoconnect=true + +[bridge] +stp=false + +[ipv4] +method=manual +addresses={{ network_ipv4_address }}/{{ network_ipv4_prefix | default(24) }} +gateway={{ network_ipv4_gateway }} +{% if network_ipv4_dns is defined %} +dns={{ network_ipv4_dns }} +{% endif %} + +[ipv6] +addr-gen-mode=default +{% if network_ipv6_address is defined %} +method=manual +addresses={{ network_ipv6_address }} +gateway={{ network_ipv6_gateway }} +{% if network_ipv6_dns is defined %} +dns={{ network_ipv6_dns }} +{% endif %} +{% else %} +method=disabled +{% endif %} |
