How to enable IPv6 on CentOS 6

24x7CSM

Well-known member
Joined
Sep 27, 2016
Messages
225
Best answers
0
Ratings
30
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
 
Newer Threads
Replies
12
Views
1,441
Replies
2
Views
5,430
Replies
7
Views
2,483

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