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

https://bitbucket.org/gabral6_gmailcom/hazelcast · XML · 49 lines · 31 code · 3 blank · 15 comment · 0 complexity · cb338ec4406c452ab2c8037cd28cf739 MD5 · raw file

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!--
  3. ~ Copyright (c) 2008-2013, Hazelcast, Inc. 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="ConfigSpecifyInterfaces" 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>Specifying Network Interfaces</title>
  24. <para>
  25. You can also specify which network interfaces that Hazelcast should use. Servers mostly have more than one
  26. network
  27. interface so you may want to list the valid IPs. Range characters ('*' and '-') can be used for simplicity. So
  28. 10.3.10.*, for instance, refers to IPs between 10.3.10.0 and 10.3.10.255. Interface 10.3.10.4-18 refers to IPs
  29. between 10.3.10.4 and 10.3.10.18 (4 and 18 included). If network interface configuration is enabled (disabled by
  30. default) and if Hazelcast cannot find an matching interface, then it will print a message on console and won't
  31. start on that node.
  32. <programlisting language="xml"><![CDATA[<hazelcast>
  33. ...
  34. <network>
  35. ....
  36. <interfaces enabled="true">
  37. <interface>10.3.16.*</interface>
  38. <interface>10.3.10.4-18</interface>
  39. <interface>192.168.1.3</interface>
  40. </interfaces>
  41. </network>
  42. ...
  43. </hazelcast>
  44. ]]></programlisting>
  45. </para>
  46. </sect2>