编辑以备将来从Google到这里的读者使用:
现在,此问题是搜索“无法从我自己的IP地址访问的目标主机”时在Google上排名靠前的结果。如果这是您到达这里的方式,那么您应该知道我的问题很可能是由气质性硬件引起的一个愚蠢的问题,所以请不要理会下面的文字墙。可能对您有用的唯一信息来自哈里·约翰斯顿(Harry Johnston)的以下评论:
在最近的Windows版本中,从您自己的计算机获取“目标不可达”消息是正常现象。这仅表示arp发生故障,即IP地址无法在LAN上定位
要确认这一点,请尝试arp -a
在您的计算机上运行,然后您会看到在LAN上可以找到的所有IP地址的列表。如果没有看到您要ping的IP地址,则可以解释为什么ping从您的计算机返回“无法访问”。至于如何解决该问题,则可能是由任何原因引起的。尝试重置路由器,重置网络适配器,摆弄静态/动态IP地址等。
^^如果您来自Google,则可能只想阅读上面的^^
我一直试图在我的家庭网络上玩Terraria,但遇到了麻烦。在检查两台机器上的Terraria游戏和服务器是否都可以通过Windows防火墙允许后,我决定查看两台机器是否可以相互ping通,而不能互相ping通。
在家里,我楼下有路由器1,已连接到互联网(这是192.168.1.1
)。路由器2在楼上,通过Cat5连接到路由器1,为有问题的两台计算机提供wifi(这是192.168.1.254
)。两台机器都可以成功ping通两个路由器,并且可以正常使用Internet。
但是,当我尝试对另一台计算机执行ping操作时,我从发送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