Atom feed of this document
  
 

 Configure Compute to use IPv6 addresses

If 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.

 

Procedure 4.2. Switch into IPv4/IPv6 dual-stack mode

  1. On all nodes running a nova-* service, install python-netaddr:

    # apt-get install python-netaddr
  2. On 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_ra
  3. Edit the nova.conf file on all nodes to specify use_ipv6 = True.

  4. Restart all nova-* services.

[Note]Note

You can add a fixed range for IPv6 addresses to the nova network-create command. Specify public or private after the network-create parameter.

$ nova network-create public --fixed-range-v4 fixed_range_v4 --vlan vlan_id --vpn vpn_start --fixed-range-v6 fixed_range_v6

You can set IPv6 global routing prefix by using the --fixed_range_v6 parameter. The default value for the parameter is: fd00::/48.

  • When you use FlatDHCPManager, the command uses the original --fixed_range_v6 value. For example:

    $ nova network-create public  --fixed-range-v4 10.0.2.0/24 --fixed-range-v6 fd00:1::/48
  • When 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

Table 4.2. Description of configuration options for ipv6
Configuration option = Default value Description
[DEFAULT]
fixed_range_v6 = fd00::/48 (StrOpt) Fixed IPv6 address block
gateway_v6 = None (StrOpt) Default IPv6 gateway
ipv6_backend = rfc2462 (StrOpt) Backend to use for IPv6 generation
use_ipv6 = False (BoolOpt) Use IPv6

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page

loading table of contents...