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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s