How to enable IPv6 on CentOS 6

24x7CSM

Moderator
Staff Member
Joined
Sep 27, 2016
Messages
263
Best answers
1
Ratings
49
Points
28
#1
Login to your server with root user

You need to update and configure following files for IPv6 configuration:

/etc/sysconfig/network : Turn on networking in this file.

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

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
 

Mujkanovic

Well-known member
Joined
Apr 24, 2016
Messages
292
Best answers
1
Ratings
19
Points
18
#2
I have IPv6 on my server but I almost ignored it because I don't know how or when to use it.
If enabled IPv6, where should I use it? and any benefits of IPv6?
 
Newer Threads
Replies
12
Views
1,738
Replies
2
Views
5,656
Replies
7
Views
2,625
Latest Threads
Recommended Threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top