How to setup IPv6 on KVM VPS from unihost.com (for Linux OS Debian\Ubuntu).
To setup IPv6 do the following steps:
Edit /etc/network/interfaces. file using text editor (vi, vim, nano, mcedit etc.). Add or change the lines:
iface eth0 inet6 static address IPv6_Address netmask 64 up ip -6 route add Gateway_IPv6_Address dev eth0 down ip -6 route del Gateway_IPv6_Address dev eth0 up ip -6 route add default via Gateway_IPv6_Address dev eth0 down ip -6 route del default via Gateway_IPv6_Address dev eth0
IPv6_Address – see Appendix 1
Gateway_IPv6_Address – see Appendix 2
Attention! If you use Linux Ubuntu software deactivate Network Manager:
Edit /etc/NetworkManager/NetworkManager.conf file using text editor (vi, vim, nano, mcedit etc.).Change managed=true to managed=false.
Reboot the server:
reboot
Appendix 1
To see a list of available IPv6 addresses allocated to your VPS, log into the VPS control panel (https://vps.unihost.com) and go to “Network” tab :
Appendix 2
IPv6 gateway addresses to specify a route by default:
solus012s.unihost.com: 2a01:4f8:192:2b3::2 / 64 solus014s.unihost.com: 2a01:4f8:200:21a9::2 / 64 solus016s.unihost.com: 2a01:4f8:201:528b::2/ 64 solus017s.unihost.com: 2a01:4f8:202:500d::2 / 64 solus018s.unihost.com: 2a01:4f8:211:a48::2 / 64 solus019s.unihost.com: 2a01:4f8:211:208e::2 / 64 solus020s.unihost.com: 2a01:4f8:131:3f5::2 / 64
The name of your server is specified in the Node line