[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: disabling ipv6 kernel module




On Nov 18, 2004, at 14.44, Jason Martens wrote:

btb wrote:

hello-

i have kernel 2.6.8 - and am having difficulty understanding how to properly keep the ipv6 module from loading.

initially, i included it in the hotplug blacklist, along with a few others, but this didn't work. the other modules were not loaded, but ipv6 still was. i believe, if i understand correctly, this is because if something asks for it, it will load, even if it's blacklisted w/ hotplug. my problem is that i know there are plenty of process asking for it simply because they can, not because they need to.

after many hours of reading about modutils, module-init-tools, rmmod, modprobe.d, modprob.conf, and many others, the only thing i could come up with was to change the line in /etc/modprobe.d/aliases to:

alias net-pf-10 off

and did an update-modules and a depmod. this did indeed work, but i believe it is not the correct way to do this. especially since the aliases file i had to edit says right at the top 'this file does not need to be modified'

what is the proper approach to achieving this?

I think you can do this by editing /etc/modutils/aliases:
# Aliases to tell insmod/modprobe which modules to use

# Uncomment the network protocols you don't want loaded:
# alias net-pf-1 off            # Unix
# alias net-pf-2 off            # IPv4
# alias net-pf-3 off            # Amateur Radio AX.25
# alias net-pf-4 off            # IPX
# alias net-pf-5 off            # DDP / appletalk
# alias net-pf-6 off            # Amateur Radio NET/ROM
# alias net-pf-9 off            # X.25
# alias net-pf-10 off           # IPv6
# alias net-pf-11 off           # ROSE / Amateur Radio X.25 PLP
# alias net-pf-19 off           # Acorn Econet

The logic seems kind of backward, but it works. Just remember to run update-modules (as root) after you edit this file.

Jason

thanks jason-

i don't actually have a /etc/modutils/aliases file. that appears to be part of modutils, which according to packages.debian.org is superseded by module-init-tools for kernel 2.5.48 and above. in fact, the only file i have in /etc/modutil is setserial.

i do have, in /etc, a modules.conf.old, that contain lines similar to those (in fact identical), but obviously some package decided that it shouldn't be used any longer... (it seems also to be part of modutils)

what's also weird, is that there have been many suggestions to use update-modules, yet the man page says "update-modules is an obsolete command."



Reply to: