PageRenderTime 55ms CodeModel.GetById 28ms RepoModel.GetById 1ms app.codeStats 0ms

/doc/src/docbkx/openstack-config/compute-configure-ipv6.xml

https://github.com/Ashok2988/openstack-manuals
XML | 62 lines | 48 code | 14 blank | 0 comment | 0 complexity | d6fec439e60f894fd0c14d51d9d57cc0 MD5 | raw file
Possible License(s): Apache-2.0
  1. <section xml:id="configuring-compute-to-use-ipv6-addresses"
  2. xmlns="http://docbook.org/ns/docbook"
  3. xmlns:xlink="http://www.w3.org/1999/xlink"
  4. xmlns:xi="http://www.w3.org/2001/XInclude"
  5. xmlns:ns5="http://www.w3.org/1999/xhtml"
  6. xmlns:ns4="http://www.w3.org/2000/svg"
  7. xmlns:ns3="http://www.w3.org/1998/Math/MathML"
  8. xmlns:ns="http://docbook.org/ns/docbook">
  9. <title>Configuring Compute to use IPv6 Addresses</title>
  10. <para>You can configure Compute to use both IPv4 and IPv6 addresses for
  11. communication by putting it into a IPv4/IPv6 dual stack mode. In IPv4/IPv6
  12. dual stack mode, instances can acquire their IPv6 global unicast address
  13. by stateless address autoconfiguration mechanism [RFC 4862/2462].
  14. IPv4/IPv6 dual stack mode works with <literal>VlanManager</literal> and <literal>FlatDHCPManager</literal>
  15. networking modes. In <literal>VlanManager</literal>, different 64bit global routing prefix is used for
  16. each project. In <literal>FlatDHCPManager</literal>, one 64bit global routing prefix is used
  17. for all instances.</para>
  18. <para>This configuration has been tested with VM images
  19. that have IPv6 stateless address autoconfiguration capability (must use
  20. EUI-64 address for stateless address autoconfiguration), a requirement for
  21. any VM you want to run with an IPv6 address. Each node that executes a
  22. <literal>nova-*</literal> service must have <literal>python-netaddr</literal>
  23. and <literal>radvd</literal> installed.</para>
  24. <para>On all nova-nodes, install python-netaddr:</para>
  25. <screen><prompt>$</prompt> <userinput>sudo apt-get install -y python-netaddr</userinput></screen>
  26. <para>On all <literal>nova-network</literal> nodes install <literal>radvd</literal> and configure IPv6
  27. networking:</para>
  28. <screen><prompt>$</prompt> <userinput>sudo apt-get install -y radvd</userinput>
  29. <prompt>$</prompt> <userinput>sudo bash -c "echo 1 &gt; /proc/sys/net/ipv6/conf/all/forwarding"</userinput>
  30. <prompt>$</prompt> <userinput>sudo bash -c "echo 0 &gt; /proc/sys/net/ipv6/conf/all/accept_ra"</userinput></screen>
  31. <para>Edit the <filename>nova.conf</filename> file on all nodes to
  32. set the use_ipv6 configuration option to True. Restart all
  33. nova- services.</para>
  34. <para>When using the command <command>nova network-create</command> you can add a fixed range
  35. for IPv6 addresses. You must specify public or private after the create parameter.</para>
  36. <screen><prompt>$</prompt> <userinput>nova network-create public --fixed-range-v4 <replaceable>fixed_range</replaceable> --vlan <replaceable>vlan_id</replaceable> --vpn <replaceable>vpn_start</replaceable> --fixed-range-v6 <replaceable>fixed_range_v6</replaceable></userinput></screen>
  37. <para>You can set IPv6 global routing prefix by using the <literal>--fixed_range_v6</literal>
  38. parameter. The default is: <literal>fd00::/48</literal>. When you use
  39. <literal>FlatDHCPManager</literal>, the command uses the original value of
  40. <literal>--fixed_range_v6</literal>. When you use <literal>VlanManager</literal>, the
  41. command creates prefixes of subnet by incrementing subnet id. Guest VMs uses this prefix for
  42. generating their IPv6 global unicast address.</para>
  43. <para>Here is a usage example for <literal>VlanManager</literal>:</para>
  44. <screen><prompt>$</prompt> <userinput>nova network-create public --fixed-range-v4 10.0.1.0/24 --vlan 100 --vpn 1000 --fixed-range-v6 fd00:1::/48 </userinput></screen>
  45. <para>Here is a usage example for <literal>FlatDHCPManager</literal>:</para>
  46. <screen><prompt>$</prompt> <userinput>nova network-create public --fixed-range-v4 10.0.2.0/24 --fixed-range-v6 fd00:1::/48 </userinput></screen>
  47. <xi:include href="../common/tables/nova-ipv6.xml"/>
  48. </section>