KVM IPv6 Networking Setup

IPv6
Internet Protocol version 6 (IPv6) is the latest version of the Internet Protocol (IP). It is designed to address the long-anticipated address exhaustion of its predecessor, IPv4, by using 128-bits addresses instead of 32-bits addresses.

Every virtual server comes with a /112 IPv6 block. This represent 65,536 IPs addresses that you can use at your convenience.
Warning: We strongly suggest our customers to disable IPv6 autoconf and router advertising to prevent known issues.
  1. Open /etc/sysctl.conf.
  2. Append the following to the bottom of the file.
    • net.ipv6.conf.eth0.autoconf=0
    • net.ipv6.conf.eth0.accept_ra=0
  3. Save and close.
  4. In a terminal as root run sysctl -p
NodeGateway
CA-VPS2 2607:5300:60:41ff:ff:ff:ff:ff
CA-VPS3 2607:5300:60:42ff:ff:ff:ff:ff
CA-VPS6 2607:5300:60:85ff:ff:ff:ff:ff
Debian (Ubuntu, Crunchbang, SteamOS and other derivatives)
  • Assuming that your interface is eth0, /etc/network/interfaces should look like the following.
iface eth0 inet6 static
    address YOUR_IPV6
    netmask IPV6_PREFIX

    post-up /sbin/ip -f inet6 route add IPV6_GATEWAY dev eth0
    post-up /sbin/ip -f inet6 route add default via IPV6_GATEWAY
    pre-down /sbin/ip -f inet6 route del IPV6_GATEWAY dev eth0
    pre-down /sbin/ip -f inet6 route del default via IPV6_GATEWAY
Redhat (CentOS, Scientific Linux, ClearOS and other derivatives)
  • Assuming that your interface is eth0, /etc/sysconfig/network-scripts/ifcfg-eth0 should look like the following.
IPV6INIT=yes
IPV6_AUTOCONF=no
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
IPV6ADDR=YOUR_IPV6/112
IPV6_DEFAULTGW=IPV6_GATEWAY
In this example, I avoided the IPv4 Failover configuration to avoid confusion, but the IPv6 configuration is made in the same configuration file.
  • Create or edit, /etc/sysconfig/network-scripts/route6-eth0 and make it look like the following.
IPV6_GATEWAY dev eth0
default via IPV6_GATEWAY
FreeBSD 8.3 (and earlier)
  • Assuming that your interface is em0, /etc/rc.conf should look like the following.
ipv6_enable="YES"
ipv6_defaultrouter="IPV6_GATEWAY"
ipv6_ifconfig_em0="YOUR_IPV6 prefixlen 112"
FreeBSD 10
  • Assuming that your interface is em0, /etc/rc.conf should look like the following.
ipv6_activate_all_interfaces="YES"
ipv6_defaultrouter="IPV6_GATEWAY"
ifconfig_em0_ipv6="inet6 YOUR_IPV6 prefixlen 112"
Windows Server 2008, 2008 R2, 2012, 2012 R2 and Hyper-V
Coming soon!
  • Email, SSL
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

KVM IPv4 Networking Setup

IPv4 Internet Protocol version 4 (IPv4) is the fourth version in the development of the...

KVM Official ISO Installation

Self Managed KVM VPS customers have the ability to install premade OS templates on their VPS....

KVM Windows Availability

Microsoft Windows is available if a couple of criteria are met.  The following two...

KVM Premade OS Template Installation

Self Managed KVM VPS customers have the ability to install premade OS templates on their VPS....

KVM Network Optimization

If your network connection is limited to 100Mbps, your Network Card configuration in SolusVM is...