Now introducing 7-Day premium trial to work, binge, & stay secure online

PureVPN is now Zero-Log Certified by Altius IT, one of the leading independent US-based Auditors. Read More 

How To Disable IPV6 on Linux/Ubuntu?

Jul 01, 2015
Sep 11, 2020
Download PDF

IPv6 is the most recent version of internet protocol (IP) designed to eliminate the long-anticipated address exhaustion problem of IPv4. In order to disable IPv6 on Linux/Ubuntu, please follow the steps below:

1 Open Terminal

2 Enter gksudo gedit /etc/sysctl.conf and open the configuration file and add 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

3 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 please follow Step 4 and Step 5.  

4 Type command sudo sysctl -p you will see this in terminal.

net.ipv6.conf.all.disable_ipv6 = 1

net.ipv6.conf.default.disable_ipv6 = 1

net.ipv6.conf.lo.disable_ipv6 = 1

5 Repeat above “Step 3” and it will now report 1.

Learn more about What is IPv6 Address?

Note: If you are still considering PureVPN for your security and streaming needs, you can take our VPN on a test drive with a $0.99 7-day trial.

Please add your comments in the comments section below to let us know whether this guide worked for you or not.

How helpful did you find this answer?

Comments (5 )


  1. PureVPN Team says:

    We are Glad you found it helpful!

  2. it was quick and helpful.

  3. Jeff Givens says:

    Worked great! Thanks!

  4. Greg says:

    Interesting that I was having alot of trouble reliably connecting to various purevpn servers via unbuntu. (i.e. intermittently just couldn’t connect no matter how many retries).As soon as I disabled IPv6 on ubuntu 14.04 LTS – immediately connected.