Spec-Zone .ru
спецификации, руководства, описания, API

5.1.9.5. Obtaining an IPv6 Address from a Broker

If you do not have a public IPv6 address that enables your system to communicate over IPv6 outside your local network, you can obtain one from an IPv6 broker. The Wikipedia IPv6 Tunnel Broker page lists several brokers and their features, such as whether they provide static addresses and the supported routing protocols.

After configuring your server host to use a broker-supplied IPv6 address, start the MySQL server with an appropriate --bind-address option to permit the server to accept IPv6 connections. For example, put the following lines in the server option file and restart the server:

[mysqld]bind-address = *   # before 5.6.6, use :: rather than *

Alternatively, you can bind the server to to the specific IPv6 address provided by the broker, but that makes the server more restrictive for TCP/IP connections. It accepts only IPv6 connections for that single address and rejects IPv4 connections. For more information, see Section 5.1.9.2, "Configuring the MySQL Server to Permit IPv6 Connections". In addition, if the broker allocates dynamic addresses, the address provided for your system might change the next time you connect to the broker. If so, any accounts you create that name the original address become invalid. To bind to a specific address but avoid this change-of-address problem, you may be able to arrange with the broker for a static IPv6 address.

The following example shows how to use Freenet6 as the broker and the gogoc IPv6 client package on Gentoo Linux.

  1. Create a account at Freenet6 by visiting this URL and signing up:

    http://gogonet.gogo6.com
  2. After creating the account, go to this URL, sign in, and create a user ID and password for the IPv6 broker:

    http://gogonet.gogo6.com/page/freenet6-registration
  3. As root, install gogoc:

    shell> emerge gogoc
  4. Edit /etc/gogoc/gogoc.conf to set the userid and password values. For example:

    userid=gogouserpasswd=gogopass
  5. Start gogoc:

    shell> /etc/init.d/gogoc
                        start

    To start gogoc each time your system boots, execute this command:

    shell> rc-update add gogoc default
  6. Use ping6 to try to ping a host:

    shell> ping6
                        ipv6.google.com
  7. To see your IPv6 address:

    shell> ifconfig tun