How to enable IPv6 on CentOS 6

24x7CSM

Well-known member
Joined
Sep 27, 2016
Messages
219
Best answers
0
Ratings
27
Points
0
#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,292
Replies
2
Views
5,330
Replies
7
Views
2,375
Latest Threads
Replies
0
Views
6
Replies
5
Views
25
Replies
0
Views
1
Replies
2
Views
27
Recommended Threads

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Top