Windows 计算机的 IP 地址及其172.16.56.109
子网255.255.240.0
由 DHCP 服务器设置。另一方面,我想访问具有 IP172.20.54.10
和子网的另一台计算机255.255.255.0
。
为此,我向第一台机器添加了路由命令,以便能够访问第二台机器。路由表显示一切正常。但是当第二台机器完全正常工作时,我无法 ping 通它。
C:\Users\mh> route print
===========================================================================
Interface List
18...........................INTERNET
11...38 60 77 05 6c 8b ......Intel(R) 82579V Gigabit Network Connection
1...........................Software Loopback Interface 1
12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
19...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.48.1 172.16.56.109 4235
0.0.0.0 0.0.0.0 On-link 10.10.1.232 11
10.10.1.232 255.255.255.255 On-link 10.10.1.232 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 4531
127.0.0.1 255.255.255.255 On-link 127.0.0.1 4531
127.255.255.255 255.255.255.255 On-link 127.0.0.1 4531
172.16.48.0 255.255.240.0 On-link 172.16.56.109 4491
172.16.56.109 255.255.255.255 On-link 172.16.56.109 4491
172.16.63.255 255.255.255.255 On-link 172.16.56.109 4491
192.168.200.1 255.255.255.255 172.16.48.1 172.16.56.109 4236
224.0.0.0 240.0.0.0 On-link 127.0.0.1 4531
224.0.0.0 240.0.0.0 On-link 172.16.56.109 4492
224.0.0.0 240.0.0.0 On-link 10.10.1.232 11
255.255.255.255 255.255.255.255 On-link 127.0.0.1 4531
255.255.255.255 255.255.255.255 On-link 172.16.56.109 4491
255.255.255.255 255.255.255.255 On-link 10.10.1.232 266
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
172.20.54.0 255.255.255.0 1.1.1.1 1
===========================================================================
查看持久路由。但是 ping 失败
C:\Users\mh> ping 172.20.54.10
Pinging 172.20.54.10 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 172.20.54.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
那么问题是什么?我该如何解决?
答案1
首先:另一台计算机需要知道如何联系您,才能响应 ping。回复不会自动找到路径。