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:
[root@104 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
  • 5410 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

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

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 To Install Linux, Apache, MySQL, PHP (LAMP) on Ubuntu 14.04

The LAMP stack (Linux, Apache, MySQL, PHP) is a group of open source software that is typically...

How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 6

LAMP stack is a group of open source software used to get web servers up and running. The acronym...

How To Install Linux, Apache, MySQL, PHP (LAMP) stack On CentOS 7

Introduction A "LAMP" stack is a group of open source software that is typically installed...