CentOS IPv6 Network Configuration

You need to 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:

[root@austin log]# nano /etc/sysconfig/network

Add to the following line:


NETWORKING_IPV6=yes

Open /etc/sysconfig/network-scripts/ifcfg-eth0 (1st network config file)


[root@austin log]# nano /etc/sysconfig/network-scripts/ifcfg-eth0

# =============================================================
# Network Interface Script generated by BareMetal
# =============================================================
DEVICE=eth0
BOOTPROTO=STATIC
ONBOOT=yes
IPADDR=216.55.162.31
NETMASK=255.255.255.0
HWADDR=6C:62:6D:47:A4:C3
IPV6INIT=yes
IPV6ADDR=3607:f0d0:1102:0011:0000:0001:0000:0002
IPV6_DEFAULTGW=5607:f0d0:1002:0011:0000:0000:0000:0002

Save and close the file. Restart networking:


[root@austin log]# service network restart

Verify your configuration by pinging ipv6 enabled site such as ipv6.google.com:



[root@austin log]# ping6 ipv6.google.com

[/bash]

Leave a Comment