我的openSUSE 11.3networking有问题。 所以,我已经为它分配了IP地址192.168.137.2,而另一台计算机(Windows 7)的IP地址是192.168.137.1。
在openSUSE上,网关是192.168.137.1。 ping的结果是
ping 192.168.137.1 PING 192.168.137.1 (192.168.137.1) 56(84) bytes of data. 64 bytes from 192.168.137.1: icmp_seq=1 ttl=128 time=2.53 ms 64 bytes from 192.168.137.1: icmp_seq=2 ttl=128 time=0.437 ms ^C --- 192.168.137.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.437/1.487/2.537/1.050 ms
路由是:
route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.137.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 10.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.137.1 0.0.0.0 UG 0 0 0 eth0
但是,问题是什么,
traceroute 8.8.8.8 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 40 byte packets using UDP 1 * * * 2 * * * . . . 30 * * *
为什么traceroute甚至没有到达网关? 或者,也许,这是我错过的networking规则。
原因可能是Windows 7内部防火墙过滤某些types的数据包。 尝试在Win7中禁用防火墙一段时间。 使用GUI控制面板或以pipe理员身份启动CLI窗口并发出命令
netsh firewall set opmode disable
现在重复traceroutetesting。 如果您的网关192.168.137.1正面回应,您的下一步必须是重新启用Win7防火墙
netsh firewall set opmode enable
并更改其设置以允许跟踪。
如果问题仍然存在,禁用W7防火墙,您应该检查OpenSUSE PC中的本地防火墙。 下一个命令刷新所有防火墙规则,并启用完全开放的通信,直到下次重新启动
iptables -F *
也许UDP数据包正在被过滤。 尝试tcptraceroute 。