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. 如果您没有一个公共IPv6地址,使您的系统能够在本地网络外通过IPv6进行通信,您可以从IPv6代理获得一个。The Wikipedia IPv6 Tunnel Broker page lists several brokers and their features, such as whether they provide static addresses and the supported routing protocols.维基百科IPv6隧道代理页面列出了几个代理及其功能,例如它们是否提供静态地址和支持的路由协议。
After configuring your server host to use a broker-supplied IPv6 address, start the MySQL server with an appropriate 将服务器主机配置为使用代理提供的IPv6地址后,使用适当的bind_address
setting to permit the server to accept IPv6 connections. bind_address
设置启动MySQL服务器,以允许服务器接受IPv6连接。You can specify * (or 您可以将*(或::
) as the bind_address
value, or bind the server to the specific IPv6 address provided by the broker. ::
)指定为bind_address
值,或将服务器绑定到代理提供的特定IPv6地址。For more information, see the 有关更多信息,请参阅第5.1.8节,“服务器系统变量”中的bind_address
description in Section 5.1.8, “Server System Variables”.bind_address
描述。
Note that 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 might be able to arrange with the broker for a static IPv6 address.为了绑定到特定地址但避免这种地址更改问题,您可以与代理协商一个静态IPv6地址。
The following example shows how to use Freenet6 as the broker and the gogoc IPv6 client package on Gentoo Linux.以下示例显示了如何在Gentoo Linux上使用Freenet6作为代理和gogoc IPv6客户端包。
Create an account at Freenet6 by visiting this URL and signing up:通过访问此URL并注册在Freenet6上创建帐户:
http://gogonet.gogo6.com
After creating the account, go to this URL, sign in, and create a user ID and password for the IPv6 broker:创建帐户后,转到此URL,登录,并为IPv6代理创建用户ID和密码:
http://gogonet.gogo6.com/page/freenet6-registration
As 以root
, install gogoc:root
身份安装gogoc:
shell> emerge gogoc
Edit 编辑/etc/gogoc/gogoc.conf
to set the userid
and password
values. For example:/etc/gogoc/gogo.conf
以设置userid
和password
值。例如:
userid=gogouser passwd=gogopass
Start gogoc:启动gogoc:
shell> /etc/init.d/gogoc start
To start gogoc each time your system boots, execute this command:要在每次系统启动时启动gogoc,请执行以下命令:
shell> rc-update add gogoc default
Use ping6 to try to ping a host:使用ping6尝试ping主机:
shell> ping6 ipv6.google.com
To see your IPv6 address:要查看您的IPv6地址:
shell> ifconfig tun