Saturday, September 6, 2008

Disabling IPV6 Networking on Redhat, CentOS and Fedora

Even though many OS's can now do IPv6 networking, most organisations don't yet have IPv6 networks so having this capability enabled in the OS (which it is by default on Redhat) can just be an annoyance. To completely disable IPv6 in your system do the following

1. echo "alias net-pf-10 off" >> /etc/modprobe.conf
2. Set NETWORKING_IPV6=no in /etc/sysconfig/network
3. For each interface (except loopback) set IPV6INIT=no in each configuration file. The configuration file for the eth0 interface is /etc/sysconfig/network-scripts/ifcfg-eth0. Others are similarly named.
4. Stop and permanently disable the IPv6 firewall/iptables
# service ip6tables stop
# chkconfig --level 12345 ip6tables off

No comments: