How do I disable ipv6?

Asked by Someone

How do i disable ipv6 completely on my laptop?
One of the ways is to change 'alias net-pf-10' into 'ipv6 alias net-pf-10 off'.
Are there any other cleaner ways to do this?

/etc/init.d/aliases belongs to module-init-tools package. Running "dpkg-reconfigure -plow module-init-tools" gives nothing.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Someone
Solved:
Last query:
Last reply:
Revision history for this message
Someone (s4910321931-deactivatedaccount) said :
#1

Typo: One of the ways is to change 'alias net-pf-10 ipv6' into 'alias net-pf-10 off'.

Revision history for this message
TraceyLedbetter (concept10) said :
#2

You may also disable ipv6 by blacklisting the kernel module 'ipv6' under /etc/modprobe.d/blacklist

You would add blacklist ipv6.

Hope this help.

Revision history for this message
Someone (s4910321931-deactivatedaccount) said :
#3

This produces warnings in the logs (about blacklisting) and that is what I want to avoid.
Another issue with the modules.
I have a rather old mini-pci Wi-Fi Intel 2100 and I want the kernek module for it to be loaded only on demand, not when the system starts. Is it possible to exclude this module from automatic detection and loading? Loading the ipw2100 module brings the annoying blue LED above my LCD scren and keeping it off is really needed. Or maybe there is some utility to disable just the LED?
And what about the power consumption? Is it supposed to be lower with Wi-Fi kernel module unloaded?

Revision history for this message
Ryan Kavanagh (ryanakca) said :
#4

You might be interested in this thread on the Ubuntu forums about disabling ipv6. http://ubuntuforums.org/showthread.php?t=202838

Revision history for this message
Someone (s4910321931-deactivatedaccount) said :
#5

The thread contains essetially the same info as presented here. Anyway, thanks.

Revision history for this message
Best Someone (s4910321931-deactivatedaccount) said :
#6

Closing the ticket as almost all possible info about ipv6 has been given.