To disable iPv6 on Ubuntu 14.0.4 (LTS) I added these lines in sysctl.conf file:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Since I was getting 0, when I used the command:
$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6
As informed here, I followed the steps given. When I tried to use:
sudo sysctl -p
I'm getting an output in the Terminal as:
sysctl: cannot stat /proc/sys/net/ipv6/conf/disable_ipv6: No such file or directory
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
I have checked the directory and found that the file/directory is present.
Additional information: I'm trying to install Apache Hadoop (ver. 2.7.2) in my system. Though all the services are up and running, I am unsure if it will work with my network configuration. Since it is informed (here) that Hadoop doesn't work well with iPv6 connection, so I tried to run:
sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \/etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart
When I do this, I get a message:
sed: can't read /etc/sysctl.d/bindv6only.conf: No such file or directory
**There is no such file in the directory when I searched manually.
ipv6
. – Anders Mar 26 '16 at 22:24