search
top

Disable IPV6 on Ubuntu 10.04

Ran into an issue on Ubuntu the other day in which network functions were having issues. Through a little PD found that IPV6 was the culprit. Here is a tip on how to disable IPV6 on Ubuntu 10.04.

To check if IPv6 is disabled, run the following command:

cat /proc/sys/net/ipv6/conf/all/disable_ipv6

0 means it’s enabled and 1 – disabled.

To disable IPv6, you have to add the following lines to /etc/sysctl.conf:

#disable ipv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

To do it from the command line, paste this in a terminal:

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

Then reboot and check if IPv6 has been disabled with the command in the beginning of this post.

Comments are closed.

top