Page 1 of 1

Disable IPv6 in Red Hat Enterprise Linux 5

PostPosted: Sat Jan 09, 2010 7:02 pm
by debuser
By default, RHEL kernel comes with IPv6 enabled. Since many of us don't need it, it's pointless to recompile the kernel just to disable IPv6.

To disable IPv6 on RHEL 5 add the following lines in /etc/modprobe.conf:
Code: Select all
alias net-pf-10 off
alias ipv6 off


This will require a reboot.

Re: Disable IPv6 in Red Hat Enterprise Linux 5

PostPosted: Sat Jan 09, 2010 7:04 pm
by debuser
More info on the Linux ipv6 module:
Code: Select all
[root@rhel54 ~]# modinfo ipv6
filename:       /lib/modules/2.6.18-164.el5/kernel/net/ipv6/ipv6.ko
alias:          net-pf-10
license:        GPL
description:    IPv6 protocol stack for Linux
author:         Cast of dozens
srcversion:     5D50A95B111AE2FDBAE69B3
depends:        xfrm_nalgo
vermagic:       2.6.18-164.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
parm:           disable:Disable IPv6 such that it is non-functional (int)
module_sig:     883f3504a8b7b7d18758d6145e112557509e204e4356832069beabcc042d7c7e614115c428a09d1dd7afb138727ae29f407762469f552ecec8b6f