IPv6 ausschalten

Folgendes funktioniert unter der Linux Distirbution CentOS 6.x:

In die Datei /etc/sysctl.conf folgendes eintragen:

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

Damit man das System dann aber nicht restarten muss, kann auch folgendes in der Konsole als Benutzer root ausgeführt werden.

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6

Folgende Anleitung ist nicht empfohlen:

/etc/sysconfig/network
Change the following:

NETWORKING_IPV6=yes to
NETWORKING_IPV6=no

Edit /etc/modprobe.conf
Add the following if it does not exist:

alias net-pf-10 off
alias ipv6 off

Stop the ipv6tables service:

chkconfig ip6tables off
service ip6tables stop