打开终端,运行以下命令

sysctl -w net.ipv4.icmp_echo_ignore_all=1
sysctl -p