vi /etc/default/grub 在GRUB_CMDLINE_LINUX后加入ipv6.disable=1内容,注意留空格 grub2-mkconfig -o /boot/grub2/grub.cfg reboot