
net.ipv6.conf.all.disable_ipv6 = 1
IPv6 can be disabled by adding a boot option to your grub configuration. Edit the /boot/grub/menu.lst file and add the option ipv6.disable=1 as a kernel option, as shown below:
title Ubuntu 9.04, kernel 2.6.28-15-generic
uuid ab986918-12fc-45e1-ad2e-559490039b8b
kernel /boot/vmlinuz-2.6.28-15-generic
root=UUID=ab986918-12fc-45e1-ad2e-559490039b8b
ro quiet splash ipv6.disable=1
initrd /boot/initrd.img-2.6.28-15-generic
Note that you must be running Linux kernel 2.6.28-15 or newer to disable IPv6 in Ubuntu 9.04. Note that you must also reboot the system after making the above change.
blacklist ipv6
Related articles that may also be helpful: