Saturday, April 17, 2010

How to disable IPv6 in RHEL 5, Fedora, CentOS?

In Red Hat Enterprise 5 Linux internet protocol version 6 (IPv6) module is turned on by default and if your network is not ready to run IPv6 then you need to turn it off on your Linux server.

Steps to disabled IPv6 on RHEL 5:

1. In Fedora, CentOS or RHEL5 Linux modules are loaded using /etc/modprobe.conf file.

Add these line to disable autloading of IPv6 module in /etc/modprobe.conf
alias net-pf-10 off
alias ipv6 off 
2. Next edit /etc/sysconfig/network
# nano /etc/sysconfig/network 

Change to the following.

3. Also to disable the IPv6 service.
# service ip6tables stop 

4. permanently disabling.
# chkconfig ip6tables off 

"setquota" interrupts virtualmin working

Last night, I try to install virtualmin on CentOS 5 and it had tried to "setquota" for a long time, but it seemed to be never end :D
Oki, then :
- Ctrl - C to terminate the installation
- rename /usr/sbin/setquota setquota.bak, make a new setquota:
# cd /usr/sbin/
# mv setquota setquota.bak
# echo "exit 0;" > setquota
# chmod 755 setquota

Now let run the installer again :D