<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h4 class="title">
      <a name="ipv6-brokers">
      </a>
      7.1.13.5 Obtaining an IPv6 Address from a Broker
     </h4>
    </div>
   </div>
  </div>
  <p>
   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
   <a class="ulink" href="http://en.wikipedia.org/wiki/List_of_IPv6_tunnel_brokers" target="_blank">
    Wikipedia
        IPv6 Tunnel Broker page
   </a>
   lists several brokers and their
        features, such as whether they provide static addresses and the
        supported routing protocols.
  </p>
  <p>
   After configuring your server host to use a broker-supplied IPv6
        address, start the MySQL server with an appropriate
   <a class="link" href="server-system-variables.html#sysvar_bind_address">
    <code class="literal">
     bind_address
    </code>
   </a>
   setting to permit
        the server to accept IPv6 connections. You can specify * (or
   <code class="literal">
    ::
   </code>
   ) as the
   <a class="link" href="server-system-variables.html#sysvar_bind_address">
    <code class="literal">
     bind_address
    </code>
   </a>
   value, or bind the
        server to the specific IPv6 address provided by the broker. For
        more information, see the
   <a class="link" href="server-system-variables.html#sysvar_bind_address">
    <code class="literal">
     bind_address
    </code>
   </a>
   description in
   <a class="xref" href="server-system-variables.html" title="7.1.8 Server System Variables">
    Section 7.1.8, “Server System Variables”
   </a>
   .
  </p>
  <p>
   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.
  </p>
  <p>
   The following example shows how to use Freenet6 as the broker
        and the
   <span class="command">
    <strong>
     gogoc
    </strong>
   </span>
   IPv6 client package on Gentoo
        Linux.
  </p>
  <div class="orderedlist">
   <ol class="orderedlist" type="1">
    <li class="listitem">
     <p>
      Create an account at Freenet6 by visiting this URL and
            signing up:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-simple"><div class="docs-select-all right" id="sa23507324"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-simple">http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>gogonet<span class="token punctuation">.</span>gogo6<span class="token punctuation">.</span>com</code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      After creating the account, go to this URL, sign in, and
            create a user ID and password for the IPv6 broker:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-simple"><div class="docs-select-all right" id="sa82500841"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-simple">http<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>gogonet<span class="token punctuation">.</span>gogo6<span class="token punctuation">.</span>com<span class="token operator">/</span>page<span class="token operator">/</span>freenet6<span class="token operator">-</span>registration</code></pre>
     </div>
     <p>
     </p>
    </li>
    <li class="listitem">
     <p>
      As
      <code class="literal">
       root
      </code>
      , install
      <span class="command">
       <strong>
        gogoc
       </strong>
      </span>
      :
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa33734784"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">emerge</span> gogoc</code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      Edit
      <code class="filename">
       /etc/gogoc/gogoc.conf
      </code>
      to set the
      <code class="literal">
       userid
      </code>
      and
      <code class="literal">
       password
      </code>
      values. For example:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting language-ini"><div class="docs-select-all right" id="sa90888482"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-ini"><span class="token constant">userid</span><span class="token attr-value"><span class="token punctuation">=</span>gogouser</span>
<span class="token constant">passwd</span><span class="token attr-value"><span class="token punctuation">=</span>gogopass</span></code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      Start
      <span class="command">
       <strong>
        gogoc
       </strong>
      </span>
      :
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa78841657"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">/etc/init.d/gogoc</span> start</code></pre>
     </div>
     <p>
      To start
      <span class="command">
       <strong>
        gogoc
       </strong>
      </span>
      each time your system
            boots, execute this command:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa8858076"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">rc-update</span> add gogoc default</code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      Use
      <span class="command">
       <strong>
        ping6
       </strong>
      </span>
      to try to ping a host:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa54538433"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">ping6</span> ipv6<span class="token punctuation">.</span>google<span class="token punctuation">.</span>com</code></pre>
     </div>
    </li>
    <li class="listitem">
     <p>
      To see your IPv6 address:
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting one-line language-terminal"><div class="docs-select-all right" id="sa28275214"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-terminal"><span class="token prompt">$&gt; </span><span class="token command">ifconfig</span> tun</code></pre>
     </div>
    </li>
   </ol>
  </div>
 </div>
 <br/>
</div>
