Skip to main content

Posts

Showing posts from June, 2016

how to set up ipv6 in linux server

On Red Hat / CentOS / Fedora RHEL:
Red Hat / CentOS / Fedora RHEL support IPv6 out of box. All you have to do is update two files and turn on networking.

/etc/sysconfig/network : Turn on networking in this file.
# 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=yesIPV6ADDR=<IPv6-IP-Address>IPV6_DEFAULTGW=<IPv6-IP-Gateway-Address>Here is my sample file with mix of IPv4 and IPv6 assigned to eth0:DEVICE=eth0BOOTPROTO=staticONBOOT=yesHWADDR=00:30:48:33:bc:33IPADDR=202.54.1.5GATEWAY=202.54.1.3NETMASK=255.255.255.248IPV6INIT=yesIPV6ADDR=2607:f0d0:1002:0011:0000:0000:0000:0002IPV6_DEFAULTGW=2607:f0d0:1002:0011:0000:0000:0000:0001Where,NETWORKING_IPV6=yes|no – Enable or disable global IPv6 initialization.IPV6INIT=yes – Enable or disable IPv6 configuration for all interfaces.IPV6ADDR=2607:f0…