To disable ipv6, 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
To check it after that run: cat /proc/sys/net/ipv6/conf/all/disable_ipv6
If it reports ‘1′ means you have disabled IPV6. If it reports ‘0‘ then do the following:
If ipv6 is still not disabled then 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 to check it again run:
cat /proc/sys/net/ipv6/conf/all/disable_ipv6
It will report:
1
If you see 1
, IPv6 has been successfully disabled.
See Also:
Comments
0 comments
Please sign in to leave a comment.