![](http://image.prntscr.com/image/02e5974b36ee4d03a36a33331fb54352.png)
Click on the Add button to add new ipv6
![](http://image.prntscr.com/image/5f0f2172b6104ed2b2425abe1738a02d.png)
After that, 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.
# vi /etc/sysconfig/network
Append following line:NETWORKING_IPV6=yesOpen /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)
# vi /etc/sysconfig/network-scripts/ifcfg-eth0Append 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.
# service network restartVerify your configuration by pinging ipv6 enabled site such as ipv6.google.com:
$ ping6 ipv6.google.comSample 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