Here's how to check to see if ipv6 is enabled on your computer
Code: Select all
test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
If you see
Running kernel is IPv6 ready
it is enabled.
If you see no output, it is not.
To disable ipv6 , blacklist ipv6 all-together. To do this, use the following command:
Code: Select all
echo 'blacklist ipv6' | sudo tee -a '/etc/modprobe.d/blacklist.local' >/dev/null
Also, this might help as well:
Code: Select all
echo 'install ipv6 /bin/true' | sudo tee -a '/etc/modprobe.d/blacklist.local' >/dev/null
Reboot for the changes to take effect. To check if it's enabled after startup run this command again:
Code: Select all
test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready"
There should be no output.