0

How can I disable IPv6 in CentOS 7

Asked 2 weeks ago (Apr 01, 2021) in the field of Operating Systems by Lili.Qt2000

Hi, I have a question please. when I run the below command and viewed no output. Please help me to disable IPV6. Thank you ifconfig -a | grep inet6


Answers


0
Answered 2 weeks ago (Apr 01, 2021) by Eldernode Staff

Open the following file for editing:

nano /etc/default/grub

Then add the following parameter for GRUB_CMDLINE_LINUX:

ipv6.disable=1

Like the following example:

GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto"

In the next step, run the following command:

grub2-mkconfig -o /boot/grub2/grub.cfg

Finally, run the following command to restart the server:

shutdown -r now

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+18054214518

7 days a week, 24 hours a day