Red Hat / CentOS IPv6 Network Configuration

Firstly, log in to your SolusVM Control Panel, choose your VPS and navigate to the Network Tab:

Click on the Add button to add new ipv6


After that, You need to update and configure following files for IPv6 configuration:
  1. /etc/sysconfig/network : Turn on networking in this file.
  2. /etc/sysconfig/network-scripts/ifcfg-eth0 : Set default IPv6 router IP and server IP address in this file.
Open /etc/sysconfig/network file, enter:
# vi /etc/sysconfig/network
Append following line:
NETWORKING_IPV6=yes
Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Append following config directives for IPv6:
IPV6INIT=yes
IPV6ADDR=<IPv6-IP-Address>
IPV6_DEFAULTGW=<IPv6-IP-Gateway-Address>

Here is our sample file with mix of IPv4 and IPv6 assigned to eth0:

DEVICE=eth0
TYPE=Ethernet
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=yes
IPV6ADDR=2607:fcd0:100:db04::1:55
IPV6_DEFAULTGW=2607:fcd0:100:db04::1
NAME="System eth0"
ONBOOT=yes

Where,

  • NETWORKING_IPV6=yes|no – Enable or disable global IPv6 initialization.
  • IPV6INIT=yes – Enable or disable IPv6 configuration for all interfaces.
  • IPV6ADDR=2607:fcd0:100:db04::1:55 – Specify a primary static IPv6 address here.
  • IPV6_DEFAULTGW=2607:fcd0:100:db04::1 – Add a default route through specified gateway.
Save and close the file. Restart networking:
# service network restart
Verify your configuration by pinging ipv6 enabled site such as ipv6.google.com:
$ ping6 ipv6.google.com
Sample output:
[[email protected] network-scripts]# ping6 ipv6.google.com
PING ipv6.google.com(lax02s23-in-x0e.1e100.net) 56 data bytes
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=1 ttl=59 time=4.64 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=2 ttl=59 time=0.352 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=3 ttl=59 time=0.356 ms
64 bytes from lax02s23-in-x0e.1e100.net: icmp_seq=4 ttl=59 time=0.382 ms
^C
--- ipv6.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3590ms
rtt min/avg/max/mdev = 0.352/1.434/4.649/1.856 ms
  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

List of available Operating systems on our KVM

We have the following available OS: CentOS 5.9 32bit CentOS 5.9 64bit CentOS 6.5 32bit...

How to Extend the Hard drive after upgrading VPS

1. For KVM VPS.First log in to your SolusVM Control Panel, mount the Gparted iso and Choose the...

How do I upgrade or downgrade my service?

If you would like to upgrade or downgrade your service, we have a convenient process to do just...

How to manage your KVM and OpenVZ VPS in SolusVM

GreenCloudVPS is using Solus Virtual Manager (SolusVM) as the VPS management system for OpenVZ...

How to install OS on KVM VPS

First, log in to our SolusVM Control Panel via the link we sent you in the VPS information...