RHEL administrators sometimes need to disable IPv6 to satisfy a specific compatibility requirement or temporary security mitigation. That does not make disabling IPv6 a universal security recommendation. Modern services can depend on IPv6 or expect a loopback IPv6 address, so determine the scope and consequences before changing a kernel boot parameter.
Decide whether you need a system-wide change
If one network interface should not use IPv6, a NetworkManager connection-specific setting may be less disruptive than disabling the IPv6 stack for the whole operating system. A kernel argument is appropriate only when the requirement genuinely applies to the system and you have verified that connected services support the change.
Before editing the boot configuration, establish console or out-of-band access. If this is a remote-only server, incorrect network changes can lock you out.
Inspect the current kernel arguments
sudo grubby --info=ALL
cat /proc/cmdline
Record the current output and take a configuration backup. RHEL provides grubby to adjust arguments consistently across installed boot entries.
Disable IPv6 through the kernel command line
To add the boot argument for installed kernels, use:
sudo grubby --update-kernel=ALL --args="ipv6.disable=1"
Schedule and perform a controlled reboot. The running kernel does not immediately adopt boot arguments changed on disk.
Confirm the result after reboot
cat /proc/cmdline
ip -6 addr
Look for ipv6.disable=1 in the current kernel command line. Verify that the network services and applications you actually depend on still function. A missing IPv6 address alone is not sufficient evidence that every component behaves correctly.
Rollback: remove the kernel argument
If an application fails or the requirement is withdrawn, restore the previous configuration:
sudo grubby --update-kernel=ALL --remove-args="ipv6.disable=1"
Reboot again, then recheck /proc/cmdline and relevant network interfaces. If your environment uses custom boot entries, test the changes in staging and document their behavior separately.
Operational considerations
- Confirm that monitoring, DNS, service discovery and application listeners do not depend on IPv6.
- Plan maintenance for clustered systems and test one node at a time.
- Prefer a targeted configuration change when you only need to suppress IPv6 on a specific connection.
- Do not rely on IPv6 being disabled as a substitute for firewall rules or system patching.
Official guidance: Red Hat: enable or disable IPv6. See also our server hardening guide for complementary security practices.




