Setting Up CentOS/Fedora/RHEL with Tunnelbroker

Tunnelbroker allows users with only IPv4 access to access the internet via IPv6 via a tunnel, hence its name. To use Tunnelbroker, you will first need an account from their website. Make sure to use your IP address under IPv4 Endpoint and select the location closest to you for a lower latency.If you plan to use this tunnel on a remote server, choose the most relevant settings for that server.

After proceeding, you will have an IPv6 tunnel setup for you. Now, you will have to edit the configuration files.

To configure your computer/VPS to begin using the tunnel, edit the /etc/sysconfig/network file. You will need to add the following two lines. In some installs, you may have NETWORKING_IPV6=no, in which case you just change the no to the yes. This should be pretty self explanatory.

NETWORKING_IPV6=yes
IPV6_DEFAULTGW=<Server IPv6 Address without /64>

To complete configuring your computer to route IPv6 through tunnelbroker, you will have to create /etc/sysconfig/network-scripts/ifcfg-sit1, with the following content:

DEVICE=sit1
BOOTPROTO=none
ONBOOT=yes
IPV6INIT=yes
IPV6TUNNELIPV4=<Server IPv4 Address>
IPV6TUNNELIPV4LOCAL=<Client IPv4 Address>
IPV6ADDR=<Client IPv6 Address with /64>

For these changes to take effect, run the following command to restart your network.

service network restart

To test that IPv6 is working, you can ping one of the sites with IPv6 enabled (such as this site). Pinging IPv6 addresses use the ping6 command, rather than the traditional ping command.

ping6 www.fusionswift.com
ping6 ipv6.google.com
ping6 www.v6.facebook.com

2 thoughts on “Setting Up CentOS/Fedora/RHEL with Tunnelbroker

  1. Sean Young

    [syoung@vps ~]$ sudo service network restart
    Shutting down interface venet0: [ OK ]
    Shutting down loopback interface: [ OK ]
    Bringing up loopback interface: [ OK ]
    Bringing up interface sit1: ioctl: No such device
    [FAILED]
    Bringing up interface venet0: [ OK ]

    Any thoughts on this error? Thanks for the guide!

    1. Tech163 Post author

      I take it that you are using OpenVZ? I haven’t been able to get it working on OpenVZ just yet, due to all the module issues.

Comments are closed.