For server IPV6 Total 4 steps
CentOS default IPv6 is off, turn on IPV6
Go to https://www.tunnelbroker.net to request the corresponding IPv6 address for the server's IPv4 address
Add IPv6 to add AAAA (IPv6) Resolution for domain name
Configuring Apache counterpart IPv6
First Open IPv6
CentOS 6.5 Version
1. edit the file,/etc/sysconfig/network, and change the Networking_ipv6=no to Networking_ipv6=yes,
Copy Code
Vi/etc/sysconfig/network
After modification
Networking_ipv6=yes
2 . Edit the file,/etc/modprobe.d/disable_ipv6.conf, and comment out the three lines
Vi/etc/modprobe.d/disable_ipv6.conf
After modification
Alias net-pf-10 off
#alias IPv6 off
Options IPv6 disable=0
3 Restarting the server
CentOS 6.6 and above 6.6 versions
edit The/etc/sysctl.conf file and change the settings of three of the disabled IPv6 to:
Net.ipv6.conf.all.disable_ipv6 = 0
Net.ipv6.conf.default.disable_ipv6 = 0
Net.ipv6.conf.lo.disable_ipv6 = 0
The command to run sysctl-p is enabled IPv6
Two https://www.tunnelbroker.net registration
After logging in, select in the left panel, Create Regular Tunnel.
Then fill in their IP address, the country and the region to choose Hong Kong is good
After the build is complete,
Copy command on server execution
Add AAAA records for domain names
Quad Configuration Apace
Namevirtualhost 85.127.181.30:80namevirtualhost [2001:470:1f0a:6ef::2]:80 # virtualhost for IPv4<VirtualHost 85.127.181.30:80> ServerName www.mydomain.org serveradmin [email protected] Documentroot /home/mydomain/public_html errorlog /home/mydomain/logs/error_ log customlog /home/mydomain/logs/access_log combined</virtualhost># Virtual host for IPv6<VirtualHost [2001:470:1f0a:6ef::2]:80> ServerName www.mydomain.org ServerAdmin [email protected] documentroot /home/mydomain/public_html errorlog /home/ mydomain/logs/error_log customlog /home/mydomain/logs/access_log combined< /virtualhost>
After the match is finished, test:
IPv6 Test URL:
http://www.ipv6proxy.net/
Linux (CentOS) server paired with IPV6