Tag Archives: IPv6

Disable IPv6 on Ubuntu Lucid Lynx (10.04.3 LTS)

I’m getting strange logging errors tracked down to IPv6 being enabled by default in Lucid.
The following commands will verify and disable IPv6.
The following command will check if IPv6 is enabled or disabled (0 = enabled, 1 = disabled… what.. not logical?):

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

The removal of IPv6 involves startup scripts in /etc/sysctl.conf. You can edit this by running the following commands in the terminal (su is implied):

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 verify that the changes went through. with the first command in the post.