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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • 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. crictl: Command-line for CRI-compatible container runtimes
  2. dolt init: Create an empty Dolt data repository
  3. How to Install gnome-session-wayland software package in Ubuntu
  4. How to mount and umount a file system in Linux
  5. zip Command Examples in Linux
  6. ccomps: Decompose graphs into their connected components
  7. cgcreate: command not found
  8. How to Change Password Of An LXC Container User Account
  9. finch Command Examples in Linux
  10. setxkbmap: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • gixy Command Examples
  • gitsome Command Examples
  • gitmoji Command Examples
  • gitlint Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright