Configure Compute to use IPv6 addressesIf you are using OpenStack Compute with nova-network, you can put
Compute into IPv4/IPv6 dual-stack mode, so that it uses both IPv4 and IPv6 addresses for
communication. In IPv4/IPv6 dual-stack mode, instances can acquire their IPv6 global unicast
address by using a stateless address auto configuration mechanism [RFC 4862/2462]. IPv4/IPv6
dual-stack mode works with both VlanManager and
FlatDHCPManager networking modes. In VlanManager, each
project uses a different 64-bit global routing prefix. In FlatDHCPManager,
all instances use one 64-bit global routing prefix.This configuration was tested with VM images that have an IPv6 stateless address auto
configuration capability. This capability is required for any VM you want to run with an IPv6
address. You must use EUI-64 address for stateless address auto configuration. Each node that
executes a nova-* service must have python-netaddr and
radvd installed.Switch into IPv4/IPv6 dual-stack modeOn all nodes running a nova-* service, install
python-netaddr:#apt-get install python-netaddrOn all nova-network nodes, install radvd and
configure IPv6 networking:#apt-get install radvd#echo 1 > /proc/sys/net/ipv6/conf/all/forwarding#echo 0 > /proc/sys/net/ipv6/conf/all/accept_raEdit the nova.conf file on all nodes to specify use_ipv6 =
True.Restart all nova-* services.You can add a fixed range for IPv6 addresses to the nova network-create
command. Specify or after the
parameter.$nova network-create public --fixed-range-v4 FIXED_RANGE_V4 --vlan VLAN_ID --vpn VPN_START --fixed-range-v6 FIXED_RANGE_V6You can set IPv6 global routing prefix by using the
parameter. The default value for the parameter is fd00::/48.When you use FlatDHCPManager, the command uses the original
value. For example:$nova network-create public --fixed-range-v4 10.0.2.0/24 --fixed-range-v6 fd00:1::/48When you use VlanManager, the command increments the subnet ID to
create subnet prefixes. Guest VMs use this prefix to generate their IPv6 global unicast
address. For example:$nova network-create public --fixed-range-v4 10.0.1.0/24 --vlan 100 --vpn 1000 --fixed-range-v6 fd00:1::/48