Appendix B. Configuring IPv6

Table of Contents

B.1. Introduction
B.2. Configuring IPv6 Environment

This appendix describes how to configure IPv6.

Use the following steps to configure JEUS in IPv6 environment.

  1. Modify the jeus, jeus-quickstart, startexampleserver, jeus.properties, startderby, and stopderby scripts.

  2. Add environment variables for the embedded WebtoB.

  3. Verify operation.

Note

The loopback address must be set to "::1" in the 'hosts' file of the server.

The 'hosts' file is located in the following paths, depending on the OS.

  • Windows

    C:/WINDOWS/system32/drivers/etc
  • UNIX series

    /etc/hosts

The following is a sample 'hosts' file.


This section describes the environment configurations for IPv6.

IPv6 environment configurations are different for each file.

  • File Name : jeus, jeus-quickstart, and startexampleserver

    • Existing environment variable

      -Djava.net.preferIPv4Stack=true                                        /
    • Updated environment variables

      -Djava.net.preferIPv6Addresses=true                                     /
      -Djava.net.preferIPv4Stack=false                                        /
      
  • File Name : jeus.properties

    • Existing environment variable

      TOOL_OPTION="-Djeus.tm.not_use=true  -Djava.net.preferIPv4Stack=true"
    • Updated environment variable

      TOOL_OPTION="-Djeus.tm.not_use=true -Djava.net.preferIPv6Addresses=true -Djava.net.preferIPv4Stack=false"
  • File Name :: startderby and stopderby

    • Existing environment variable

      -Dderby.system.home="${JEUS_HOME}/derby/databases"              /
    • Updated environment variables

      -Dderby.system.home="${JEUS_HOME}/derby/databases"              /
      -Djava.net.preferIPv6Addresses=true                             /
      -Djava.net.preferIPv4Stack=false                                /
      
  • Adding an environment variable to use embedded WebtoB

    The following environment variable must be added to use the embedded WebtoB in IPv6 environment.

    If omitted, IPv4 is used by default.

    export WEBTOB_PREFER_IPV6=Y