Department of Defense
High Performance Computing Modernization Program

These directions will help you disable Internet Protocol version 6 (IPv6) on several Linux releases. IPv4 will continue to run. You must be logged in as root to make such changes.

 

Debian/ Ubuntu Linux

In Debian/ Ubuntu releases built on a 2.6.x or later Linux kernel, IPv6 is enabled by default. This includes Debian 2.6.x and later and Ubuntu 6.10 and later. To disable it,

1. Edit the file /etc/modprobe.d/aliases
2. Find the existing line

alias net-pf-10 ipv6

and edit it so that it looks like

alias net-pf-10 off
alias ipv6 off

3. Write the file, save it, and exit the editor
4. Reboot

 

SuSe Linux

In SuSe 10.x or later releases, IPv6 is enabled by default. Also applies to earlier releases, so long as they are built on a 2.6.x or later Linux kernel. To disable IPV6,

1. Edit the file /etc/modprobe.conf.local
2. Find the existing line

alias net-pf-10 ipv6

and edit it so that it lbecomes the two lines

alias net-pf-10 off
alias ipv6 off

If the alias net-pf-10 line does not exist, add both of the above lines to the end of the file

3. Write the file, save it, and exit the editor
4. Reboot

 

Red Hat/Mandrake/Fedora/CentOS Linux

In releases built with a Linux kernel 2.6 and later, IPv6 is enabled by default. This includes Red Hat (Desktop or WS 3.0 or later and Enterprise 5.2 or later), Mandrake 8.0 or later, Fedora 9 or later, and CentOS 7 or later systems. To disable it,

1. Edit the file /etc/modprobe.conf
2. Add the following lines to the file

alias net-pf-10 off
alias ipv6 off

3. Write the file, save it, and exit the editor
4. Edit the file /etc/sysconfig/network
5. Change the following line in the file

NETWORKING_IPV6= yes

so that it looks like

NETWORKING_IPV6= no

6. Write the file, save it, and exit the editor
7. Reboot


Top