Commit 543ad771 authored by Pietro Albini's avatar Pietro Albini

lxd: configure ipv6 for containers

parent bfa13a30
......@@ -25,4 +25,5 @@
- role: lxd
subnet: 10.48.14
subnet: 10.0.0
subnet6: 2001:470:b368:4242
server=/lxd/{{ subnet }}.1
server=/lxd/{{ subnet4 }}.1
bind-interfaces
except-interface=lxdbr0
......@@ -17,16 +17,16 @@ LXD_DOMAIN="lxd"
# IPv4
## IPv4 address (e.g. 10.0.8.1)
LXD_IPV4_ADDR="{{ subnet }}.1"
LXD_IPV4_ADDR="{{ subnet4 }}.1"
## IPv4 netmask (e.g. 255.255.255.0)
LXD_IPV4_NETMASK="255.255.255.0"
## IPv4 network (e.g. 10.0.8.0/24)
LXD_IPV4_NETWORK="{{ subnet }}.0/24"
LXD_IPV4_NETWORK="{{ subnet4 }}.0/24"
## IPv4 DHCP range (e.g. 10.0.8.2,10.0.8.254)
LXD_IPV4_DHCP_RANGE="{{ subnet }}.2,{{ subnet }}.254"
LXD_IPV4_DHCP_RANGE="{{ subnet4 }}.2,{{ subnet4 }}.254"
## IPv4 DHCP number of hosts (e.g. 250)
LXD_IPV4_DHCP_MAX="252"
......@@ -36,16 +36,16 @@ LXD_IPV4_NAT="true"
# IPv6
## IPv6 address (e.g. 2001:470:b368:4242::1)
LXD_IPV6_ADDR=""
LXD_IPV6_ADDR="{{ subnet6 }}::1"
## IPv6 CIDR mask (e.g. 64)
LXD_IPV6_MASK=""
LXD_IPV6_MASK="64"
## IPv6 network (e.g. 2001:470:b368:4242::/64)
LXD_IPV6_NETWORK=""
LXD_IPV6_NETWORK="{{ subnet6 }}::/64"
## NAT IPv6 traffic
LXD_IPV6_NAT="false"
LXD_IPV6_NAT="true"
# Run a minimal HTTP PROXY server
LXD_IPV6_PROXY="true"
LXD_IPV6_PROXY="false"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment