1

So, I'm building hadoop cluster with raspberry right now, I need to disable ipv6 connectivity, and need to know whether ipv6 has been disabled or not.
In some guide cat /proc/sys/net/ipv6/conf/all/disable_ipv6 is supposed to give the result I want, but for some reason if I enter it my terminal said "no such files or directory".
Do you have some suggestions?

nb : there is already a question about ipv6 in 'IPv6 connectivity', but i didn't find the answer, and what i ask is how to disable and check whether it's disabled or not, while the other question is about enabling it, thanks.

1 Answers1

1

IPv6 functionality is part of the kernel, and it may be modular (or configured out completely). If the module is not loaded, then there is not even the option of enabling or disabling it -- first the module must be loaded:

sudo modprobe ipv6

Will either create that directory tree in /proc/sys, or else throw an error indicating there is no such module -- but if you are using raspbian, that's the set-up.

This module has options which are documented here; evidently you could load this way:

sudo modprobe ipv6 disable=1

Which will prevent it from functioning. It also seems you can do something similar with a kernel invocation parameter by adding:

disable_ipv6=1

To /boot/cmdline.txt. Remember that that file should only be one line, the various parameters are just separated by spaces. This is effective at boot.

goldilocks
  • 60,325
  • 17
  • 117
  • 234