disabling ipv6 on 11.04

sktsee sktseer at gmail.com
Sat Dec 17 00:24:37 UTC 2011


On 12/15/2011 05:56 PM, Greg Pelly wrote:
> Hi,
>
> I have HBase installed on a a Ubuntu 11.04 box. It's having problems and
> they are due to the fact that ipv6 is enabled, the advice is to disable
> ipv6. The method of disabling appears to be adding the following three
> lines to sysctl.conf:
>
> ***net.ipv6.conf.all.disable_ipv6 = 1*
> *net.ipv6.conf.default.disable_ipv6 = 1*
> *net.ipv6.conf.lo.disable_ipv6 = 1
>
>

Easier way to do this is to pass the kernel a parameter to disable ipv6 
on bootup. To do that, edit /etc/default/grub and add 
"ipv6.disable_ipv6=1" on the GRUB_CMDLINE_LINUX_DEFAULT line so it looks 
similar to the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash ipv6.disable_ipv6=1"

Save the file and then run "sudo update-grub" to update grub.cfg and 
generate new initramfs images. Reboot and ipv6 should be disabled on all 
interfaces.

-- 
sktsee





More information about the ubuntu-users mailing list