我有一个具有以下拓扑的网络:
+-----------+ +-----------+
|192.168.1.1+---+--->192.168.1.7|
+-----------+ | +-----------+
server | windows
|
| +-----------+
+--->192.168.1.3|
+-----------+
GNU/Linux
server
机器连接到互联网并充当本地网络的 DHCP 服务器。GNU/Linux
机器运行良好。windows
但是,机器表现出奇怪的行为 - 它无法解析特定的互联网 IP 地址。
我可以从机器 ping 大部分地址windows
:
C:\Users\User>tracert 8.8.8.8
Tracing route to google-public-dns-a.google.com [8.8.8.8]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 192.168.1.1
2 <1 ms <1 ms <1 ms x.x.x.x
....
7 1 ms 1 ms 1 ms google-public-dns-a.google.com [8.8.8.8]
Trace complete.
但对于某些地址,windows
机器会路由到其本地网络地址:
C:\Users\User>tracert 198.185.159.145
Tracing route to 198.185.159.145 over a maximum of 30 hops
1 WINDOWS.machine.example.com [192.168.1.7] reports: Destination host unreachable.
Trace complete.
机器上的相同痕迹GNU/Linux
如下所示:
traceroute to 198.185.159.145 (198.185.159.145), 30 hops max, 60 byte packets
1 192.168.1.1 (192.168.1.1) 0.322 ms 0.288 ms 0.278 ms
....
14 * * *
15 198.185.159.145 (198.185.159.145) 158.510 ms 158.523 ms 158.505 ms
Windows 防火墙已关闭,server
iptables
链全部设置为ACCEPT
。
什么可能导致这种现象?
编辑1
windows
机器路由表:
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.7 10
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.0.0.0 224.0.0.0 On-link 192.168.1.7 266
192.168.1.7 255.255.255.255 On-link 192.168.1.7 266
223.255.255.255 255.255.255.255 On-link 192.168.1.7 266
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.7 266
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.7 266
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
9 306 ::/0 On-link
1 306 ::1/128 On-link
9 306 2001::/32 On-link
9 306 2001:0:9d38:6ab8:3c09:1c95:3f57:fef8/128
On-link
5 266 fe80::/64 On-link
9 306 fe80::/64 On-link
9 306 fe80::3c09:1c95:3f57:fef8/128
On-link
5 266 fe80::9ce4:a7a5:5ab:8512/128
On-link
1 306 ff00::/8 On-link
5 266 ff00::/8 On-link
9 306 ff00::/8 On-link
===========================================================================
答案1
您的本地网络的网络掩码 ( 224.0.0.0
) 也不正确,它还覆盖了目标地址。
输入正确的网络掩码,它就应该可以工作了。