On Thu, Jan 2, 2014 at 1:53 PM, Bonno Bloksma <b.blok...@tio.nl> wrote:
>>>
>>> # rmmod ipv6
>>>
>>> libkmod: ERROR ../libkmod/libkmod-module.c:1802
>>> kmod_module_get_holders: could not open '/sys/module/ipv6/holders': No
>>> such file or directory Error: Module ipv6 is in use
>>
>> So I am certain now that I don't have ipv6 enabled at all, and that message 
>> can be ignored.
>
> In previous Debian versions ipv6 was done via a module that one could unload 
> or disable to prevent ipv6 being activated.
> As of Squeeze ipv6 is built in at the kernel level and cannot be disabled 
> that way.
>
> So unless you are still running Lenny or build your own kernel there is no 
> ipv6 module.
> Just do "ip addr" or "ifconfig" and you will probably see ip6 lines, ip6 is 
> default on now. If your uplink does not do ipv6 then there is no ipv6 traffic 
> going over the line and no delay in using ipv4.

When ipv6 is compiled as a module, you can disable it with modprobe or sysctl.

When ipv6 is compiled in-kernel, you can disable it in two ways.

You can disable the ipv6 stack by adding "ipv6.disable=1" to the kernel cmdline.

You can disable the assignment of ipv6 addresses to nics by adding
"ipv6.disable_ipv6=1" to the kernel cmdline.

The latter's the equivalent of creating "/etc/sysctl.d/disable_ipv6.conf" where

# cat /etc/sysctl.d/disable_ipv6.conf
net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.eth<X>.disable_ipv6=1

(or you can "echo 1 > /proc/sys/net/ipv6/conf/.../disable_ipv6" at boot)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOdo=SwhpoHVecXgeXXa+jRLkfcKCKxg4hLu8G9FiLtQ5pj=d...@mail.gmail.com

Reply via email to