PlanetIT.WS - Beta

Welcome, Guest

Search: Advanced

Home » Linux » Redhat » Disabling IPv6 on RedHat based Linux distributions

Disabling IPv6 on RedHat based Linux distributions Print View

Article Stats:
Submitted by: alex
Date: 2008-01-09 00:00:00
Views: 1344
Rating: 2.44

Tested on RedHat based distributions:
Fedora Core 5+
RedHat Enterprise Linux 4+
CentOS Linux 4+
 
Requirements:
root privileges
text editor
server restarting
 
Steps to disable IPv6:
Switch to root console
$ su –
 
Edit the file “/etc/sysconfig/network” by performing the following:
# vi /etc/sysconfig/network
 
Change:
NETWORKING_IPV6=yes
To:
NETWORKING_IPV6=no
Save & Exit
 
Next we need to turn off ipv6 in the kernel stack.
Do so by editing “/etc/modprobe.conf” as indicated below:
 
# vi /etc/modprobe.conf
 
Insert the following lines to the bottom of the file if they do not already exist:
alias net-pf-10 off
alias ipv6 off
Save & Exit
 
Now we need to stop and disable the ip6tables service, on CentOS & RHEL4 no such service installed by default, on Fedora 5+ it is.
Do so by performing the following in a terminal window:
# service ip6tables stop
 
Now we need to disable ip6tables from restarting in the future.
 # chkconfig ip6tables off
 
After making these changes, you must restart the server.
 

Comments

Jun 11th 2011, by Guest
Just exactly what I needed in order to make that nasty boot error go away in CentOS 6.

Add Comment



Enter the code shown:

Visual CAPTCHA