Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
227
rated 0 times [  227] [ 0]  / answers: 1 / hits: 347686  / 1 Year ago, wed, november 16, 2022, 1:53:09

I am using Ubuntu 14.04. And I have done the following to disable ipv6.



I have open /etc/sysctl.conf using gedit and paste the following lines at the end of sysctl.conf.



net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1


But when I check it using following command,



$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6


I am getting result as '0'( i.e still Enabled). Please help me to disable ipv6, so that I can use hadoop.



I followed instructions from this link.


More From » 14.04

 Answers
6

To disable ipv6, you have to open /etc/sysctl.conf using any text editor and insert the following lines at the end:



net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1


If ipv6 is still not disabled, then the problem is that sysctl.conf is still not activated.



To solve this, open a terminal(Ctrl+Alt+T) and type the command,



sudo sysctl -p


You will see this in the terminal:



net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1


After that, if you run:



$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6


It will report:



1


If you see 1, ipv6 has been successfully disabled.


[#26295] Friday, November 18, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionavocad

Total Points: 189
Total Questions: 101
Total Answers: 118

Location: Liechtenstein
Member since Wed, Dec 8, 2021
2 Years ago
tionavocad questions
Tue, May 23, 23, 00:07, 1 Year ago
Tue, Jan 17, 23, 20:38, 1 Year ago
Sun, Oct 10, 21, 04:50, 3 Years ago
Tue, Jun 7, 22, 08:50, 2 Years ago
;