• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to disable IPv6 on CentOS / RHEL 5

by admin

This post describes steps on how to disable IPv6 function in CentOS / RHEL 5. There are two cases to be considered here while disabling IPv6.
1. With Bonding interface
2. Without Bonding interface

Case 1 : Without Bonding interface

1. The easiest way to disable IPv6 functions is to forbid from loading ipv6.ko module. Thus add one line below onto /etc/modprobe.conf to forbid to install ipv6.ko module onto your kernel:

# vim /etc/modprobe.conf
install ipv6 /bin/true

2. Reboot the server.

# sutdown -r now

Case 2 : With Bonding interface

1. In this case, it is impossible to forbid to install ipv6.ko onto kernel, since bonding.ko needs ipv6.ko. To forbid ipv6 from working actively even when ipv6.ko is loaded, add a line in /etc/modprobe.conf:

# vi /etc/modprobe.conf
options ipv6 disable=1

2. Add a line onto /etc/sysconfig/network:

# vi /etc/sysconfig/network
NETWORKING_IPV6=no

3. Disable ip6tables service:

# chkconfig ip6tables off

4. Reboot the server.

# shutdown -r now
Note: A loopback IPv6 query which can not be inhibited might occur even after this configuration, then ignore it.

Filed Under: CentOS/RHEL 5, Linux

Some more articles you might also be interested in …

  1. printk and console log level
  2. CentOS / RHEL : DNS servers in /etc/resolv.conf change after a reboot/network service restart. How to make them permanent
  3. How to Make User Account Read-Only in CentOS/RHEL 7
  4. How to use “xfs_admin” command to change parameters of an XFS filesystem
  5. idle3: command not found
  6. Beginners Guide to Automounting File Systems in CentOS / RHEL
  7. CentOS / RHEL 6 : How to boot into rescue mode
  8. DNF Update Fails With Error “GPG check FAILED” – CentOS/RHEL 8
  9. How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  10. How To Change Timezone for Oracle Grid Infrastructure

You May Also Like

Primary Sidebar

Recent Posts

  • qemu-system-x86_64: command not found
  • timedatectl: command not found
  • mpirun.openmpi: command not found
  • startkde: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright