To disable IPv6 protocol support in the Linux kernel,
add the argument ipv6.disable=1
to the default
GRUB2 command line for the Linux operating system.
To ensure that ipv6.disable=1
is added as a kernel command line
argument to newly installed kernels, add ipv6.disable=1
to the
default Grub2 command line for Linux operating systems. Modify the line within
/etc/default/grub
as shown below:
GRUB_CMDLINE_LINUX="... ipv6.disable=1 ..."
Run the following command to update command line for already installed kernels:# grubby --update-kernel=ALL --args="ipv6.disable=1"