How to disable IPv6 in RHEL 5 Linux

by Eddy on

Why you need to disable IPv6 in RHEL 5?

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. When I first installed my Red Hat enterprise 5 server i noticed strange IPv6 error messages in /var/log/messages file.

Here is how i turned IPv6 on my Red Hat Enterprise Linux 5 (RHEL5) machine.

Steps to disabled IPv6 on RHEL 5:

1. In Fedora or RHEL5 Linux modules are loaded using /etc/modprobe.conf file, open the modprobe.conf file using your friendly editor vi or pico and add these line to disable autloading of IPv6 module

alias net-pf-10 off
alias ipv6 off

2. Next in your global network configuration file edit the IPv6 option using your root login session:

bosdev # vi /etc/sysconfig/network

Change following option to NO:

NETWORKING_IPV6=yes to
NETWORKING_IPV6=no

3. To turn off the IPv6 tables immediately run Linux service command to disable the IPv6 service

bosdev# service ip6tables stop

4. For permanently disabling the ip6tables using chkconfig command so it wouldn’t start during next Linux reboot

bosdev# chkconfig ip6tables off

Using these steps I was able to successfully turn of IPv6 on my RHEL5 Linux machine. If you want to turn off IPv6 on your RHEL 5 or Fedora machines you can disable it by following these steps.

News Tags:

Bookmark and Share

No related posts.

{ 4 comments… read them below or add one }

Charles September 29, 2008 at 12:54 PM

What harm will it cause to leave IPv6 on?
it will only setup loopback and locallink addr.

you can also disable it at the installation stage.

dan September 15, 2009 at 8:48 PM

this didn’t work for me, IPv6 persists:
udp 0 0 :::123 :::* 1883/ntpd

Brandon August 30, 2011 at 9:22 PM

didnt work for me either…

aurbain January 24, 2012 at 2:28 PM

the following worked for me”

[aurbain@nyxdevmd01 : ~
] cat /etc/modprobe.d/ipv6.conf
options ipv6 disable=1

Leave a Comment

Comment moderation is enabled. Your comment may take some time to appear.

Next post: