系统禁止ping [root@etc ~]# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all 系统允许ping [root@etc ~]# echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all