Ping我本地网络上的一台机器,从我自己的IP地址得到一个 "无法到达 "的响应?
编辑为未来的读者谁得到这里从谷歌:
这个问题是现在的顶级谷歌的结果,当搜索 “目标主机无法到达从我自己的IP地址"。如果你就是这样来到这里的,那么你应该知道,我的问题是一个愚蠢的问题,可能是由喜怒无常的硬件引起的,所以不要费心阅读下面的文字墙。唯一对你有用的信息来自Harry Johnston在下面的评论。
从你自己的机器上得到 "目的地不可达 "的消息 在最近的Windows版本中是正常的行为。这只是意味着arp失败了,即IP地址无法在局域网上找到
要确认这一点,请尝试在你的机器上运行arp -a
,你会看到一个在你的局域网上可以找到的所有IP地址的列表。如果你没有看到你试图ping的IP地址,那么这就解释了为什么你的ping从你自己的机器上返回 "无法到达"。至于如何解决这个问题,它可能是由任何原因造成的。试着重新设置你的路由器,重新设置你的网络适配器,摆弄静态/动态IP地址等等等等。
^^ 如果你是从google来的,你可能只想看上面的内容^
- *
我一直想在家里的网络上玩Terraria,但我遇到了麻烦。在检查了两台机器上的Terraria游戏和服务器是否被允许通过Windows防火墙后,我决定看看两台机器是否可以互相ping,结果不能。
在家里,我的路由器1在楼下,连着互联网(这是192.168.1.1
)。路由器2在楼上,通过Cat5与路由器1连接,为两台机器提供wifi(这是192.168.1.254
)。两台机器都能成功ping到两台路由器,可以正常使用网络。
然而,当我尝试从另一台机器ping其中一台机器时,我得到的是'Destination host unreach’from the machine that is sending the ping。
例如,当我坐在192.168.1.2
。
C:\Users\Cam>ping 192.168.1.9
Pinging 192.168.1.9 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.
另一种方式:
C:\Users\Bianca>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.9: Destination host unreachable.
Reply from 192.168.1.9: Destination host unreachable.
Reply from 192.168.1.9: Destination host unreachable.
Reply from 192.168.1.9: Destination host unreachable.
这是我的机器的ipconfig:
C:\Users\Cam>ipconfig
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . : home
Link-local IPv6 Address . . . . . : fe80::e193:4df5:1f0f:d454%17
IPv4 Address. . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Local Area Connection:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:4137:9e76:1cac:3b08:8cbf:4c0e
Link-local IPv6 Address . . . . . : fe80::1cac:3b08:8cbf:4c0e%12
Default Gateway . . . . . . . . . : ::
Tunnel adapter Reusable ISATAP Interface {DFC85B2E-7BFA-4F6D-8290-297D34E6DB51}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : home
Tunnel adapter isatap.{14B82FE3-FC4C-49FF-AF35-5808CA779909}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
为什么我不能在这两台机器之间进行ping,为什么错误的回复是来自始发机器?
按要求编辑:
C:\Users\Cam>route print
===========================================================================
Interface List
17...f4 ec 38 98 2a bf ......TP-LINK 150Mbps Wireless Lite N Adapter
11...50 e5 49 42 88 f7 ......Realtek PCIe GBE Family Controller
1...........................Software Loopback Interface 1
12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.1.0 255.255.255.0 On-link 192.168.1.2 281
192.168.1.2 255.255.255.255 On-link 192.168.1.2 281
192.168.1.255 255.255.255.255 On-link 192.168.1.2 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.2 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.1.2 281
===========================================================================
Persistent Routes:
None
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
12 58 ::/0 On-link
1 306 ::1/128 On-link
12 58 2001::/32 On-link
12 306 2001:0:4137:9e76:1cac:3b08:8cbf:4c0e/128
On-link
17 281 fe80::/64 On-link
12 306 fe80::/64 On-link
12 306 fe80::1cac:3b08:8cbf:4c0e/128
On-link
17 281 fe80::e193:4df5:1f0f:d454/128
On-link
1 306 ff00::/8 On-link
12 306 ff00::/8 On-link
17 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
编辑:第二台机器的路由表:
C:\Users\Bianca>route print
===========================================================================
Interface List
29 ...f8 d1 11 0c a5 e4 ...... TP-LINK 150Mbps Wireless Lite N Adapter
11 ...00 22 19 e9 98 13 ...... Broadcom NetLink (TM) Gigabit Ethernet
1 ........................... Software Loopback Interface 1
23 ...00 00 00 00 00 00 00 e0 isatap.{B2C8981A-B289-467B-AE63-54B849BE78CD}
10 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
22 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #7
16 ...00 00 00 00 00 00 00 e0 6TO4 Adapter
17 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #2
18 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #3
19 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #4
20 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #5
21 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #6
27 ...00 00 00 00 00 00 00 e0 isatap.{BA694930-3E1A-44DB-9BEB-5B4B22E4C956}
30 ...00 00 00 00 00 00 00 e0 isatap.{4DA30C6C-EFD0-4CEE-A93D-375FC1878C51}
25 ...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter #9
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.9 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.1.0 255.255.255.0 On-link 192.168.1.9 281
192.168.1.9 255.255.255.255 On-link 192.168.1.9 281
192.168.1.255 255.255.255.255 On-link 192.168.1.9 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.1.9 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.1.9 281
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.1.1 Default
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
10 18 ::/0 On-link
1 306 ::1/128 On-link
10 18 2001::/32 On-link
10 266 2001:0:4137:9e76:47:11ff:3f57:fef6/128
On-link
29 281 fe80::/64 On-link
10 266 fe80::/64 On-link
10 266 fe80::47:11ff:3f57:fef6/128
On-link
29 281 fe80::95c:9958:d93d:f2e4/128
On-link
1 306 ff00::/8 On-link
10 266 ff00::/8 On-link
29 281 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
```。