How do I disable or enable the IPv6 protocol in Red Hat Enterprise Linux / CentOS

Disabling IPv6 support in Red Hat Enterprise Linux 8 Disable ipv6 built-in kernel module. Edit /etc/default/grub and append ipv6.disable=1 to GRUB_CMDLINE_LINUX like the following sample: GRUB_CMDLINE_LINUX=”rd.lvm.lv=rhel/swap crashkernel=auto rd.lvm.lv=rhel/root ipv6.disable=1″ Run the grub2-mkconfig command to regenerate the grub.cfg file: # grub2-mkconfig Read More …