1 添加内核参数彻底禁用IPv6:sudo dedit /etc/default/grub
2 在此行添加参数:GRUB_CMDLINE_LINUX="ipv6.disable=1"
3 保存退出后执行:sudo update-grub