Adding IPv6 to Centos with cPanel

I recently setup a new dedicated server at NetDepot which is a subsidiary of GNAX.  The dedicated server was setup with Centos and cPanel.  I wanted to have the ability to setup IPv6 websites.  To do this I used a free block provided by Hurricane Electric’s Tunnel Broker service.

If you don’t already have a Tunnel Broker account, head over there and set one up.  Also create a standard tunnel.  This will give you the routing information you need as well as your IPv6 addresses.

After creating your tunnel at Tunnel Broker, you will be given the following information…

  • Server IPv4 Address: the IP address you’re connecting to.
  • Server IPv6 Address: the IPv6 gateway for your tunnel.
  • Client IPv4 Address: your public IPv4 address
    • If you have multiple IP addresses, be sure to use your default outgoing IP.  Run the following command from a shell to get your default public IP
  • Client IPv6 Address: the IPv6 address for your end of the tunnel.

With the above information you can now begin editing your config files.  You can use your favorite text editor however the examples assume vim.

First you will need to add some additional settings to your /etc/sysconfig/network file, run the following command to open it in a text editor.

This will open the file in vim.  If you are not familiar with vim, you will need to now press the “i” key to begin editing the file.  Add the end of the file you can add the following lines.

Replace the <Server IPv6 Address (without /64)> with your actual server IPv6 provided to you in your tunnel configuration.  Note that you will need to exclude the /64.  If you are not familiar with vim, to save the file, press “ESC”, then “:”, then enter “wq”, then press “enter”

Next we need to create a virtual adapter configuration file.  We will use the adapter name sit1 so the configuration file will be /etc/sysconfig/network-scripts/ifcfg-sit1

Then add the following information…

As with the previous file, be sure to replace the above with the correct addresses provided to you by your tunnel configuration.

Now you just need to restart your networking configuration and also your ipaliases if you have them.



Sources :

HOWTO Configure a Hurricane Electric/ IPv6 tunnel with Fedora/CentOS:
Internet Backbone and Colocation Provider:
IPv6 Tunnel Broker:

Leave a Reply

Your email address will not be published. Required fields are marked *