Debian kernel 2.4:
In /etc/modutils, change the line
alias net-pf-10 ipv6
to
alias net-pf-10 off
alias ipv6 off
Reboot.
Debian kernel 2.6/Ubuntu (“official”method)/Fedora Core
(method 1):
In /etc/modprobe.d/aliases, change the line
alias net-pf-10 ipv6
to
alias net-pf-10 off
alias ipv6 off
Reboot.
Debian kernel 2.6/Ubuntu (alternatemethod):
In /etc/modprobe.d/blacklist, add a line
blacklist ipv6
Reboot.
RHEL/CentOS:
In /etc/modprobe.conf, make sure you have
alias net-pf-10 off
alias ipv6 off
Reboot.
RHEL/CentOS/Fedora Core (method 2)/Mandriva(method 1):
In /etc/sysconfig/network, add a line
NETWORKING_IPV6=”no”
Reboot.
SuSE 9.0:
In /etc/modules.conf, change the line
alias net-pf-10 ipv6
to
alias net-pf-10 off
alias ipv6 off
Reboot.
SuSE 9.1/9.2/9.3/10.0 (“official” method):
In /etc/modprobe.conf, change the line
alias net-pf-10 ipv6
to
alias net-pf-10 ipv6
install ipv6 /bin/true
Reboot.
SuSE 9.1/9.2/9.3/10.0 (alternatemethod)/Mandriva (method 2)/Slackware:
In /etc/modprobe.conf, make sure you change
alias net-pf-10 ipv6
to
alias net-pf-10 off
alias ipv6 off
Reboot.
Gentoo:
In /etc/modules.d/aliases, make sure you change
alias net-pf-10 ipv6
to
alias net-pf-10 off
alias ipv6 off
Reboot.
NOTES:
In distros using /etc/modprobe.conf, beware that you might get overriden by /etc/modprobe.conf.local or by/etc/modprobe.d/*.
If you disable IPv6, I suppose you don’tneed tunnels either. You could also
add there:
install sit0 /bin/true
A last “anti-IPv6″ issue: don’t forget the old trick of checking if your Firefox
has IPv6 disabled:
o CTRL+L, about:config (Enter)
o Filter by ipv6.
o Set network.dns.disableIPv6 totrue.
How To Disable ipv6 on SuSE Linux
Posted by Planet Malaysia on August 18, 2008
For some strange reason, ipv6 is switched ON by default in SuSE Linux.
To check whether you are currently running ipv6, run the following command as root:
ifconfigeth0 Link encap:Ethernet HWaddr 00:0F:1F:89:8F:D5 inet addr:192.168.1.100 Bcast:140.171.243.255 Mask:255.255.254.0 inet6 addr: fe80::20f:1fff:fe89:8fd5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:33386388 errors:0 dropped:0 overruns:0 frame:0 TX packets:2947979 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2211978470 (2109.5 Mb) TX bytes:380978644 (363.3 Mb) Base address:0xdf40 Memory:feae0000-feb00000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:895 errors:0 dropped:0 overruns:0 frame:0 TX packets:895 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:76527 (74.7 Kb) TX bytes:76527 (74.7 Kb)
If you have lines containing inet6 as above, then your machine IS running ipv6.
How to disbling ipv6 on SuSE Linux
To disable ipv6 completely, run the following commands as root:
# echo “alias net-pf-10 off” >> /etc/modprobe.conf.local
# echo “alias ipv6 off” >> /etc/modprobe.conf.local
Restart the machine.
Once your machine has rebooted, rerun the ifconfig command and verify that the inet6 lines have been removed.
Done! Your machine are running without IPV6.