我正在测试网络中节点的可用性。为此,我使用 ping 命令并查看该机器是否响应。
但是,如果机器无法访问 ping 应该告诉我“目标主机无法访问”。但如果可以,它应该返回响应消息。但是没有正在接收的消息!
这意味着什么?- 那个特定机器上没有启用 ping 但可以在网络上访问?
这是我第一次看到这个,我不确定它是什么意思;
64 bytes from 74.125.93.99: icmp_seq=6233 ttl=53 time=545.493 ms
64 bytes from 74.125.93.99: icmp_seq=6234 ttl=53 time=776.093 ms
64 bytes from 74.125.93.99: icmp_seq=6235 ttl=53 time=-705.731 ms
64 bytes from 74.125.93.99: icmp_seq=6236 ttl=53 time=52.549 ms
64 bytes from 74.125.93.99: icmp_seq=6237 ttl=53 time=44.470 ms
Run Code Online (Sandbox Code Playgroud)
有没有人以前见过负 ping 时间?我的一个朋友告诉我他曾经在无线链接上看到过它,这是通过无线连接,但是..这是怎么发生的?
我可以浏览我公司工作站中的所有网站,但无法打开命令提示符并ping 任何网站。这也发生在我以前的两家公司中。公司会阻止ping吗?公司为什么要这样做?
对于某些主机,ping www.example.com它会解析其 IP,但为什么会因请求超时而失败?我还尝试增加 ping 响应时间,但结果仍然相同。
我有两个 VMware Workstation 虚拟机正在运行...
虚拟 Aping大部分时间都可以作为主机笔记本电脑,我家庭网络上的其他真实机器一直都可以,但是虚拟 B 会出现“请求超时”
虚拟 Bping大部分时间都可以作为笔记本电脑的主机,而机器,无论是真实的还是虚拟的 A 一直都是
我所知道的唯一区别是虚拟 B 已加入我的工作域,而虚拟 A 仍处于工作组模式
谁能解释这是如何/为什么发生的?
更新...... 这些都是我的笔记本电脑
从......主机笔记本电脑(win7,工作组)进行无线Ping时
Request timed outRequest timed outPing 从 ... 虚拟 A
Request timed out,接下来ping需要 2000 毫秒,然后接下来的几个需要 <1 毫秒,然后是一个,然后Destination host unreachable回到Request timed outPing 从 ... 虚拟 …
我尝试在 Ubuntu 17.04 中加速 DNS 查找,并按照此处第二篇文章中的说明进行操作:Ubuntu 17.04 systemd-resolved DNS lookups随机失败
结果:一旦我重新启动名称解析就根本不起作用:
ping www.google.com
ping: www.google.com: Temporary failure in name resolution
Run Code Online (Sandbox Code Playgroud)
输入后一切正常
sudo systemctl restart systemd-resolved
Run Code Online (Sandbox Code Playgroud)
如何解决这个问题?每次重新启动后都必须键入此命令不太理想。
当我运行命令时,ping 192.168.1.4我得到以下结果:
Pinging 192.168.1.4 with 32 bytes of data:
Reply from 192.168.1.2: Destination host unreachable.
Reply from 192.168.1.2: Destination host unreachable.
Reply from 192.168.1.2: Destination host unreachable.
Reply from 192.168.1.2: Destination host unreachable.
Run Code Online (Sandbox Code Playgroud)
谁能帮助我理解为什么世界上它告诉我 192.168.1.2 无法访问,而那不是我输入的 IP 地址?我很困惑。
另外,如果相关,我在一个工作组中。
事实:
ping google.com 不起作用,返回 Ping request could not find host google.com.ping 216.58.209.78 (google IP) 确实有效,发送和接收所有数据包。nslookup google.com确实有效,返回正确的 IP 地址,然后确实与ping.c:\windows\system32\drivers\etc\host netsh winsock reset & netsh int ip reset 没有帮助。ipconfig /flushdns & ipconfig /registerdns不起作用,后者返回Registration of DNS records failed: Parameter is not correct.它偶尔会发生在人们身上,但我还没有找到解决这个问题的可能方法。我觉得这可能是我的磨难的关键。ipconfig /all如下。第一段看起来有点空白,也许那里有什么......?
Windows IP Configuration
Host Name . . …Run Code Online (Sandbox Code Playgroud)在 Windows 7 机器上,我 ping 关闭机器的 IP 地址。
C:\>ping 192.168.1.222
Pinging 192.168.1.222 with 32 bytes of data:
Reply from 192.168.1.222: Destination host unreachable.
Reply from 192.168.1.222: Destination host unreachable.
Reply from 192.168.1.222: Destination host unreachable.
Ping statistics for 192.168.1.222:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss)
Run Code Online (Sandbox Code Playgroud)
即使没有回复,错误级别也设置为0。
我想要做的是弄清楚远程机器是否正在回复 ping。我的测试之一是关闭机器并ping它。出于某种原因,ping 将错误级别设置为0.
当我使用适用于 Windows 10 的 WSL 时,我无法 ping 通任何网站。我在 WSL 中运行 Ubuntu 18.04。
--- google.com ping statistics ---
14 packets transmitted, 0 received, 100% packet loss, time 38567ms
Run Code Online (Sandbox Code Playgroud)
这是当我尝试 ping google.com 时的结果,我使用的是带 IPv4 的 Windows 10,禁用了 IPv6。我可以在常规命令提示符下正常 ping google.com,无需使用 wsl
我正在运行 Avast internet security,当我从 ubuntu/WSL 实例内部 ping google 时,这就是我所看到的。
1:
我需要做什么才能在 WSL 中启用 ping
ping ×10
networking ×4
dns ×2
windows ×2
windows-7 ×2
batch ×1
command-line ×1
ip ×1
latency ×1
rails ×1
ubuntu ×1
windows-10 ×1