Setting up IPv6 on my VDS/VPS

Configuring IPv6 in Centos:


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


IPV6INIT=yes

IPV6_AUTOCONF=no

IPV6ADDR=2401:1b80:0:your:ipv6:addr:ess/64

IPV6_DEFAULTGW=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

 

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 

  

Testing:

 

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

Ping6 ipv6.google.com

 

If everything is working successfully you should see something like:

 

PING ipv6.google.com(nrt04s11-in-x04.1e100.net) 56 data bytes

64 bytes from nrt04s11-in-x04.1e100.net: icmp_seq=1 ttl=56 time=151 ms

64 bytes from nrt04s11-in-x04.1e100.net: icmp_seq=2 ttl=56 time=153 ms

^C

--- ipv6.google.com 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:

 

SSH:

 

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

AddressFamily any
ListenAddress 0.0.0.0
ListenAddress ::

 

DNS:

 

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 ip.v4.ad.rs:80>

cPanel

 

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

 

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

2401:1b80::your:gate:way:1/128

 

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...