Centos 7 disable ipv6
Best solution is disable ipv6 kernel module. Other solutions not working sometimes. Add ipv6.disable=1 to GRUB_CMDLINE_LINUX parameters. And restart the server.
# nano /etc/default/grub GRUB_TIMEOUT=5 GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT="console" GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto rhgb quiet" GRUB_DISABLE_RECOVERY="true" # grub2-mkconfig -o /boot/grub2/grub.cfg # regenerate grub2 and reboot # reboot
I don’t like restart server but there is no other nice solution. I googled this issue and tried other solution but only this worked. Have a nice days.
0 yorum