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
On all nodes running a
nova-*
service, installpython-netaddr
:# apt-get install python-netaddr
On all
nova-network
nodes, installradvd
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
Edit the
nova.conf
file on all nodes to specifyuse_ipv6 = True
.Restart all
nova-*
services.
Note | |
---|---|
You can add a fixed range for IPv6 addresses to the nova network-create
command. Specify $ nova network-create public --fixed-range-v4 You can set IPv6 global routing prefix by using the
|
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 |