Current Example Setup:
SolusVM Version 1.16.12
Centos Version 6.6
Server with IPv4
It is best to setup IPv6 before adding in VPS but it will still work with VPS currently running. A basic understanding of SSH and VI editing is required.
1. Check the file /etc/sysctl.conf
The file should contain:
net.ipv4.ip_forward = 1 net.ipv4.ip_forward = 1 net.ipv6.conf.default.forwarding = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.default.proxy_arp = 0 net.ipv4.conf.all.rp_filter = 1 kernel.sysrq = 1 net.ipv4.conf.default.send_redirects = 1 net.ipv4.conf.all.send_redirects = 0 net.ipv6.conf.all.proxy_ndp = 1
2. Check the file /etc/sysconfig/network
The file should contain the following:
NETWORKING=yes HOSTNAME=server1.yourdomain.com NETWORKING_IPV6=yes IPV6_DEFAULTGW="2554:6450:2:c::1" IPV6FORWARDING=yes
Make sure your HOSTNAME and IPV6_DEFAULTGW (IPv6 default gateway) is correct. Enter in your own values.
3. Check the file /etc/sysconfig/network-scripts/ifcfg-eth0
In my case, I edited the file ifcfg-em1. Make sure you select the correct file to edit. This is the ethernet port you would like IPv6 enabled and listening on. The file should contain the following:
DEVICE=em1 BOOTPROTO=none NM_CONTROLLED=yes ONBOOT=yes TYPE=Ethernet UUID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" HWADDR=00:ff:ff:ff:ff:29 DEFROUTE=yes PEERROUTES=yes IPV4_FAILURE_FATAL=yes IPV6INIT=yes NAME="System em1" IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.255.224 DNS2=220.127.116.11 GATEWAY=xxx.xxx.xxx.xxx DNS1=18.104.22.168 USERCTL=no IPV6ADDR="xxxx:xxxx::xxxx" IPV6_AUTOCONF=no
The key here is to make sure you enter in whats missing from the list above. Also make sure to set “IPV6INIT” to yes. Add in your IPv6 address as necessary.
4. Edit the file /proc/sys/net/ipv6/conf/default/disable_ipv6.
It should contain:
5. Disable ip6tables by running the following commands:
Service ip6tables stop Chkconfig ip6tables off
6. Restart the network
Service network restart
Make sure there’s no error.
7. Assign an IPv6 address to the VPS and restart the VPS to reset the connection.
8. Finally ping the server from an outside source and ping an outside source from the server.