Setting up IPv6 on my VDS/VPS

Configuring IPv6 in Centos:

edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add:






Edit /etc/resolv.conf and add:


nameserver 2001:4860:4860::8888

nameserver 2001:4860:4860::8844

Restart networking: /etc/init.d/network restart


Configuring IPv6 in Debian/Ubuntu:


Edit /etc/network/interfaces and add:


iface eth0 inet6 static

        address 2401:1b80:0:your:ipv6:addr:ess/

        netmask 64

        gateway 2401:1b80::your:gate:way:1


Edit /etc/resolv.conf and add:


nameserver 2001:4860:4860::8888

nameserver 2001:4860:4860::8844

Restart networking: /etc/init.d/network restart 




Ping6 2401:1b80::your:gate:way:1 



If everything is working successfully you should see something like:


PING 56 data bytes

64 bytes from icmp_seq=1 ttl=56 time=151 ms

64 bytes from icmp_seq=2 ttl=56 time=153 ms


--- ping statistics ---

2 packets transmitted, 2 received, 0% packet loss, time 1829ms

rtt min/avg/max/mdev = 151.498/152.725/153.952/1.227 ms


Server Software:




Edit /etc/ssh/sshd_config
Ensure the configuration is as follows to bind to both ipv4 and ipv6

AddressFamily any
ListenAddress ::




If you are running BIND on your server edit the configuration file /etc/bind/named.options.conf  (Debian/Ubuntu) or /etc/named.conf (Centos) and Uncomment or Add

listen-on-v6 port 53 { any; };


To create ipv6 lookup records you will need to use AAAA records. In your DNS management portal create for example:


www                      IN             AAAA                      2401:1b80:0:your:ipv6:addr:ess


Apache (Standalone no cPanel)

edit /etc/httpd/conf/httpd.conf

Listen [::]:80

To edit virtual hosts to respond to ipv6 edit the the <VirtualHost> directive:

<VirtualHost [2401:1b80:0:your:ipv6:addr:ess]:80>



After configuring your OS and testing to ensure IPv6 is working Open WHM and go to IPv6 Ranges. Add your range eg. 2401:1b80:0:your::/64  or in individual IPs eg. 2401:1b80:0:your:2nd:addr:ess/128 


To ensure there is no conflict with your Gateway IP address and your servers Primary address add these 2 addresses as reserved





Once you have completed this go to ‘Enable IPv6’ and select the account you wish to enable IPv6 on then click Enable Account.


Each account will be given its own IPv6 address from your range 

Was this answer helpful?

 Print this Article

Also Read

Do you support TUN/TAP on your VPS?

Our VPS plans have the TUN/TAP option available and you will need to open a Support eTicket to...

How do I migrate accounts to my Virtual Server?

Most control panels have built in control panel to control panel migration tools that you can...

What is Virtual Server Management?

By default our Virtual Server plans are unmanaged. We provide with a control panel to assist you...