为什么“ping google.com"如果我遇到完美的互联网连接,返回 100% 丢包率? [英] Why "ping google.com" returns 100% packet loss if I am experiencing a perfect internet connection?

查看:91
本文介绍了为什么“ping google.com"如果我遇到完美的互联网连接,返回 100% 丢包率?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对计算机网络不是很了解,但我的理解是 Linux 上的 ping 命令通过计算发送和接收到某个 IP 地址的包的数量来测试互联网连接.

为此,如果我遇到连接问题,我经常使用 ping 命令.但结果往往非常违反直觉:例如现在我似乎有一个完美的互联网连接,但是从 ping 命令到任何地址的结果返回 100% 丢包

<预><代码>>>>ping google.comPING google.com(lga25s62-in-x0e.1e100.net (2607:f8b0:4006:81a::200e)) 56 个数据字节--- google.com ping 统计 ---发送27个数据包,接收0个,100%丢包,时间26618ms

对此有何解释?什么是 ping 命令真正告诉我有关我当前连接的信息?

解决方案

Yout PC 默认使用 IPv6,因此它 ping google IPv6 地址 2607:f8b0:4006:81a::200e 并且您的网络不会路由 IPv6.您可以使用以下命令使用 IPv4 ping google:

ping -4 google.com

你使用的是什么操作系统和内核,命令的结果是什么:

uname -a

I am not very knowledgeable on computer networks, but my understanding is that the ping command on Linux tests internet connection by computing the amount of sent and received packages to some IP address.

For this I often use the ping command if I am experiencing connection issues. But the results are ofter very counterintuitive: For example now I seem to have a perfect internet connection, but the results from a ping command to any address returns 100% packet loss

>>> ping google.com

PING google.com(lga25s62-in-x0e.1e100.net (2607:f8b0:4006:81a::200e)) 56 data bytes

--- google.com ping statistics ---
27 packets transmitted, 0 received, 100% packet loss, time 26618ms

What is an explanation for this? What is the ping command really telling me about my current connection?

解决方案

Yout PC defaults to IPv6 so it ping google IPv6 address 2607:f8b0:4006:81a::200e and your network does not route IPv6. You can ping google with IPv4 with command:

ping -4 google.com

What OS and Kernel you are using, what is the result of command:

uname -a

这篇关于为什么“ping google.com"如果我遇到完美的互联网连接,返回 100% 丢包率?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆