cat /proc/sys/net/ipv6/conf/eno2/disable_ipv6 显示0说明ipv6开启,1说明关闭 在 /etc/sysctl.conf 增加下面一行,并重启。 net.ipv6.conf.eno2.disable_ipv6 = 1 sudo sysctl -p