ubuntu禁用ipv6
gedit /etc/default/grub
-
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
变为
GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1 quiet splash” sudo update-grub
检查:
ip a | grep inet6
gedit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
变为
GRUB_CMDLINE_LINUX_DEFAULT=”ipv6.disable=1 quiet splash”
sudo update-grub
ip a | grep inet6