C.6 Configuring IPv6 Support for the SGD Gateway

IPv6 support is enabled by default for the SGD Gateway. This means that IPv6 addresses are supported in addition to IPv4 addresses. The Gateway binds automatically to all interfaces, both IPv6 and IPv4.

You can use the gateway config command to configure IPv6 support for the Gateway.

To disable IPv6 support for the Gateway, run the following commands:

# /opt/SUNWsgdg/bin/gateway config disable --ipv6
# /opt/SUNWsgdg/bin/gateway restart

To enable IPv6 support for the Gateway, run the following command:

# /opt/SUNWsgdg/bin/gateway config enable --ipv6
# /opt/SUNWsgdg/bin/gateway restart
Note

This command enables support for IPv6 addresses in addition to IPv4 addresses.

To configure an IPv6 binding port, use the --binding option of the gateway config edit command. See Examples of Configuring the Gateway to Use IPv6 Addresses.

Examples of Configuring the Gateway to Use IPv6 Addresses

The following are examples of how to configure the SGD Gateway to use IPv6 addresses.

  • To bind to all interfaces, both IPv4 and IPv6 addresses, on TCP port 443:

      # /opt/SUNWsgdg/bin/gateway config enable --ipv6
      # /opt/SUNWsgdg/bin/gateway config edit --binding *:443
    
  • To bind to all interfaces, IPv4 addresses only, on TCP port 443:

      # /opt/SUNWsgdg/bin/gateway config disable --ipv6
      # /opt/SUNWsgdg/bin/gateway config edit --binding *:443
    
  • To bind to a specific IPv6 address, on TCP port 443:

      # /opt/SUNWsgdg/bin/gateway config enable --ipv6
      # /opt/SUNWsgdg/bin/gateway config edit --binding [2001:db8::1]:443
    
    Note

    Binding to all interfaces, IPv6 addresses only, is not supported.

  • To enable IPv6 support and bind to a specific IPv4 address, on TCP port 443:

      # /opt/SUNWsgdg/bin/gateway config enable --ipv6
      # /opt/SUNWsgdg/bin/gateway config edit --binding 192.168.0.1:443

    The resulting server socket is bound to an IPv4-mapped address, ::ffff:192.168.0.1.

You must restart the SGD Gateway to enable any changes you make.