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

/hazelcast-documentation/src/main/docbook/manual/content/network/IPv6.xml

https://github.com/rpwaltz/hazelcast
XML | 84 lines | 64 code | 5 blank | 15 comment | 0 complexity | 46877142f30055772454d736473f5897 MD5 | raw file
Possible License(s): Apache-2.0
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!--
  3. ~ Copyright (c) 2008-2012, Hazel Bilisim Ltd. All Rights Reserved.
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License.
  16. -->
  17. <sect2 xml:id="IPv6" version='5.0' xmlns='http://docbook.org/ns/docbook'
  18. xmlns:xi="http://www.w3.org/2001/XInclude"
  19. xmlns:xlink="http://www.w3.org/1999/xlink"
  20. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  21. xsi:schemaLocation="http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd
  22. http://www.w3.org/1999/xlink http://www.w3.org/1999/xlink.xsd">
  23. <title>IPv6 Support</title>
  24. <para>
  25. Hazelcast supports IPv6 addresses seamlessly. [<emphasis>IPv6 support has been switched off by default.
  26. <link xlink:href="#IPv6-Note">See note below</link></emphasis>]
  27. All you need is to define IPv6 addresses or interfaces in
  28. <link xlink:href="#NetworkConfig">network configuration</link>. Only limitation at the moment is you can not define
  29. wildcard IPv6 addresses in <link xlink:href="#ConfigTcpIp">TCP-IP</link> join configuration.
  30. <link xlink:href="#ConfigSpecifyInterfaces">Interfaces</link> section does not have this limitation, you can
  31. configure wildcard IPv6 interfaces same as IPv4 interfaces.
  32. <programlisting language="xml"><![CDATA[<hazelcast>
  33. ...
  34. <network>
  35. <port auto-increment="true">5701</port>
  36. <join>
  37. <multicast enabled="false">
  38. <multicast-group>FF02:0:0:0:0:0:0:1</multicast-group>
  39. <multicast-port>54327</multicast-port>
  40. </multicast>
  41. <tcp-ip enabled="true">
  42. <member>[fe80::223:6cff:fe93:7c7e]:5701</member>
  43. <interface>192.168.1.0-7</interface>
  44. <interface>192.168.1.*</interface>
  45. <interface>fe80:0:0:0:45c5:47ee:fe15:493a</interface>
  46. </tcp-ip>
  47. </join>
  48. <interfaces enabled="true">
  49. <interface>10.3.16.*</interface>
  50. <interface>10.3.10.4-18</interface>
  51. <interface>fe80:0:0:0:45c5:47ee:fe15:*</interface>
  52. <interface>fe80::223:6cff:fe93:0-5555</interface>
  53. </interfaces>
  54. ...
  55. </network>
  56. ]]></programlisting>
  57. </para>
  58. <para>
  59. JVM has two system properties for setting the preferred protocol stack IPv4 or IPv6 as well as the preferred
  60. address family types inet4 or inet6. On a dual stack machine IPv6 stack is preferred by default, this can be
  61. changed through <code>java.net.preferIPv4Stack=&lt;true|false&gt;</code> system property. And when querying name
  62. services JVM prefers IPv4 addressed over IPv6 addresses and will return an IPv4 address if possible. This can be
  63. changed through <code>java.net.preferIPv6Addresses=&lt;true|false&gt;</code> system property.
  64. </para>
  65. <para>
  66. Also see additional <link xlink:href="http://docs.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html#details">
  67. details on IPv6 support in Java
  68. </link>.
  69. </para>
  70. <para xml:id="IPv6-Note">
  71. <emphasis role="bold">Note:</emphasis>
  72. </para>
  73. <para>
  74. IPv6 support has been switched off by default, since some platforms have issues in use of IPv6 stack. And some other
  75. platforms such as Amazon AWS have no support at all. To enable IPv6 support, just set configuration property
  76. <code>hazelcast.prefer.ipv4.stack</code> to false.
  77. See <link xlink:href="#ConfigurationProperties">Configuration Properties.</link>
  78. </para>
  79. </sect2>