PureVPN goes :zap: hypersonic with latest 20Gbps server upgrades. Learn More

How To Disable IPv6 on Linux/Ubuntu?

Jul 01, 2015
Oct 06, 2021
0 Comments
Download PDF

IPv6 is the most recent version of the 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

2Enter

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
3After 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.

4Type 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
5Repeat above “Step 3” and it will now report 1.

Learn more about What is IPv6 Address?

How helpful did you find this answer?

Comments (0 )