Disable ipv6 built-in kernel module.
-
Edit
/etc/default/gruband appendipv6.disable=1toGRUB_CMDLINE_LINUXlike the following sample:
GRUB_CMDLINE_LINUX="rd.lvm.lv=rhel/swapcrashkernel=auto rd.lvm.lv=rhel/root ipv6.disable=1" -
Run the
grub2-mkconfigcommand to regenerate thegrub.cfgfile:
Alternatively, on UEFI systems, run the following:# 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