IPv6 disable

1) open terminal  and type (one by one) :

  • echo “#disable ipv6″ | sudo tee -a /etc/sysctl.conf
  • echo “net.ipv6.conf.all.disable_ipv6 = 1″ | sudo tee -a /etc/sysctl.conf
  • echo “net.ipv6.conf.default.disable_ipv6 = 1″ | sudo tee -a /etc/sysctl.conf
  • echo “net.ipv6.conf.lo.disable_ipv6 = 1″ | sudo tee -a /etc/sysctl.conf

reboot and we are done , else

2)  at terminal type :

  • sudo -s
  • gksu gedit /etc/modprobe.d/ath9k.conf

and type right below the last line at the text :

options ath9k nohwcrypt=1

or at terminal type : sudo gedit  /etc/sysctl.conf  , and type below the last line : net.ipv6.conf.all.disable_ipv6 = 1 .

these commands should work for ubuntu , oneiric or presice pangolin , and are used to disable ipv6 when we are sure that ipv4 is fine . To be absolutely sure  that we are using ipv4 we check the conversations tab here  .