CentOS - IPV6 Network Configuration Print

  • 2

Add nameserver to resolv.config

nano /etc/resolv.conf

Add line for ipv6 nameserver

nameserver 2407:f800::113:23:133:101

nano /etc/sysconfig/network

Add a line at the bottom

NETWORKING_IPV6="yes"

nano /etc/sysconfig/network-scripts/ifcfg-eth0

Add lines at the bottom

IPV6INIT=yes
IPV6ADDR=
IPV6_DEFAULTGW=

Example:

IPV6INIT=yes
IPV6ADDR=2407:f800:101::2
IPV6_DEFAULTGW=2407:f800:101::1

Restart network

service network restart


Was this answer helpful?

« Back