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

Re: Disable ipv6.......



On Sun, Jan 5, 2014 at 9:40 AM, Scott Ferguson
<scott.ferguson.debian.user@gmail.com> wrote:
> On 03/01/14 04:55, Tom H wrote:
>>
>> 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)
>
> I don't know that having IPv6 enabled but unused makes the system slower
> but those instructions alone still leave IPv6 services running.

As I said, the latter instructions disable the assignment of ipv6
addresses to the nics, not ipv6 itself.

If you want to disable applications' use of ipv6, you have to do so
application by application.


Reply to: