IPv6, if not supported by your ISP, can make browsing painstakingly slow.
Method 1 - if your PC definitely boots with sysctl turned on (usually it does)
To disable IPv6 on your PC, first edit systctl.conf as root:
Code: Select all
sudo nano /etc/sysctl.conf
Code: Select all
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Code: Select all
sudo nano /etc/hosts
Code: Select all
sudo sysctl -p
Method 2 - Editing the GRUB to disable IPv6 before sysctl would kick in
Code: Select all
sudo nano /etc/default/grub
and add or append
Code: Select all
ipv6.disable=1
Save and exit, then run
Code: Select all
sudo update-grub && sudo reboot