sudo perl -pi -e 's/ipv6/off/g' /etc/modprobe.d/aliases
sudo /etc/init.d/networking stop sudo /etc/init.d/networking start
sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 sudo /etc/init.d/networking restart