qacafe - ip test solutions
Knowledge Base > How do I disable IPv6 on my Linux system?

How do I disable IPv6 on my Linux system?

IPv6 General Installation
We recommend that you disable IPv6 on your Linux system when using CDRouter IPv6 to avoid any conflicts between CDRouter IPv6 and the Linux kernel's implementation of IPv6.

Ubuntu Karmic 9.10 and Lucid 10.04

Add the following line to /etc/sysctl.conf and reboot the system.
net.ipv6.conf.all.disable_ipv6 = 1

Ubuntu Jaunty 9.04

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.

Ubuntu Intrepid 8.10

Add the following line to /etc/modprobe.d/blacklist and reboot the system.
blacklist ipv6

Related articles that may also be helpful: