====== Настройка IPv6 в CentOS ====== Включаем поддержку IPv6 в **/etc/sysconfig/network** NETWORKING_IPV6=yes Добавляем в конфигурационный файл сетевого интерфейса **/etc/sysconfig/network-scripts/ifcfg-eth0** IPV6INIT=yes IPV6ADDR="[/]" IPV6ADDR_SECONDARIES="" IPV6_DEFAULTGW="" Пример конфигурационного файла DEVICE=eth0 BOOTPROTO=static ONBOOT=yes IPADDR=192.168.1.1 NETMASK=255.255.255.0 IPV6INIT=yes IPV6ADDR="2607:f0d0:1002:54::3/64" IPV6ADDR_SECONDARIES="2607:f0d0:1002:54::4/64 2607:f0d0:1002:54::5/64" IPV6_DEFAULTGW="2607:f0d0:1002:54::1" Применяем изменения # service network restart или # /etc/init.d/network reload) Если система выдает ошибку CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support то в файле **/etc/modprobe.conf** комментируем следующие строки #alias net-pf-10 off #alias ipv6 off также меняем значение с 1 на 0 options ipv6 disable=0 в итоге #Uncomment the next two lines to disable IPv6 support at boot. #alias net-pf-10 off #alias ipv6 off #Swap commented/uncommented lines below to disable IPv6 support at boot. #options ipv6 disable=1 options ipv6 disable=0 Проверяем # ping6 -c 4 ipv6.google.com PING ipv6.google.com(dfw06s03-in-x14.1e100.net) 56 data bytes 64 bytes from dfw06s03-in-x14.1e100.net: icmp_seq=1 ttl=52 time=66.4 ms 64 bytes from dfw06s03-in-x14.1e100.net: icmp_seq=2 ttl=52 time=65.3 ms 64 bytes from dfw06s03-in-x14.1e100.net: icmp_seq=3 ttl=52 time=65.3 ms 64 bytes from dfw06s03-in-x14.1e100.net: icmp_seq=4 ttl=52 time=66.5 ms --- ipv6.google.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3071ms rtt min/avg/max/mdev = 65.371/65.951/66.556/0.600 ms Публичные IPv6 DNS серверы: | | IPv6 | IPv4 | ^ [[http://www.opendns.com/|Open DNS]] | 2620:0:ccc::2 | 208.67.222.222 | ^ ::: | 2620:0:ccd::2 | 208.67.220.220 | ^ [[http://code.google.com/speed/public-dns/docs/using.html|Google Public DNS]] | 2001:4860:4860::8888 | 8.8.8.8 | ^ ::: | 2001:4860:4860::8844 | 8.8.4.4 | ===== Ссылки ===== Howto * http://blog.titax.fr/post/Centos-Fedora-et-IPv6.html * http://kbeezie.com/ipv6.txt * http://wiki.hetzner.de/index.php/Netzkonfiguration_Debian#Root-Server_2 Немного теории * [[http://tldp.org/HOWTO/Linux+IPv6-HOWTO/|Linux IPv6 HOWTO]] * [[http://www.ripe.net/internet-coordination/press-centre/understanding-ip-addressing|Understanding IP Addressing (RIPE)]] * [[https://version6.ru/ip6tables|Настройка IPv6-файрвола (ip6tables)]] * http://ip.v6net.ru/ * https://labs.ripe.net/Members/emileaben/6to4-why-is-it-so-bad Немного про Hurricane Electric * [[https://samsclass.info/ipv6/proj/he-cert-win.html|How to Earn IPv6 Certifications]] * [[https://chronos-tachyon.net/reference/debian-ipv6-and-hurricane-electric/|Debian, IPv6, and Hurricane Electric HOWTO]] * [[https://heliosj.net/main/ipv6_rdns_tunnelbroker|Tunnelbroker He.net IPv6 rDNS Delegation]]