Disable ipv6 built-in kernel module.
-
Edit
/etc/default/grub
and appendipv6.disable=1
toGRUB_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 thegrub.cfg
file:
# grub2-mkconfig -o /boot/grub2/grub.cfg
# grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
-
Reboot the system to disable IPv6 support.
No comments:
Post a Comment