我在 Ubuntu Xenial 虛擬機器上,並且被這種現象困擾:
- ping 不起作用,即使在 IP 位址上也是如此(100% 封包遺失)
- 所有進行遠端連線的命令(如 git、pip 或 curl)都可以運作
例子:
admindev@rxlemdevdatlp01:~/dir$ curl -O https://cdn.sstatic.net/Sites/unix/Img/logo.svg
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8419 100 8419 0 0 18945 0 --:--:-- --:--:-- --:--:-- 18919
admindev@rxlemdevdatlp01:~/dir$ ping -c 1 cdn.sstatic.net
PING cdn.sstatic.net (151.101.1.69) 56(84) bytes of data.
--- cdn.sstatic.net ping statistics ---
1 packets transmitted, 0 received, 100% packet loss, time 0ms
你如何解釋這一點?就好像機器會拒絕 ICMP 回覆...