summaryrefslogtreecommitdiff
path: root/roles/vm/network/templates/interfaces.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vm/network/templates/interfaces.j2')
-rw-r--r--roles/vm/network/templates/interfaces.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/vm/network/templates/interfaces.j2 b/roles/vm/network/templates/interfaces.j2
index 829a3e7d..d59d53e1 100644
--- a/roles/vm/network/templates/interfaces.j2
+++ b/roles/vm/network/templates/interfaces.j2
@@ -15,3 +15,9 @@ iface {{ network.primary.interface }} inet static
gateway {{ network.primary.gateway }}
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
pre-up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
+{% if 'prefix6' in network.primary %}
+
+iface {{ network.primary.interface }} inet6 static
+ address {{ network.primary.prefix6 }}
+ gateway {{ network.primary.gateway6 }}
+{% endif %}