我的系统有 Windows 7 和 Ubuntu 14.04 LTS(使用 wubi 安装,双操作系统)。通过 WiFi 连接。
问题:一些网站显示此网页无法使用在 ubuntu 中,但是,在我的 Windows 7 中没有任何问题。
(在 Chrome 中以及在 Firefox 中也检查过)
我尝试通过终端发出 ping 请求。
$ ping github.com
PING github.com (192.30.252.129) 56(84) bytes of data.
^C
--- github.com ping statistics ---
50 packets transmitted, 0 received, 100% packet loss, time 49391ms
Facebook 也失败了
PING facebook.com (173.252.120.6) 56(84) bytes of data.
^C
--- facebook.com ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4031ms
其他网站,有效
PING superuser.com (198.252.206.140) 56(84) bytes of data.
64 bytes from stackoverflow.com (198.252.206.140): icmp_seq=1 ttl=51 time=307 ms
64 bytes from stackoverflow.com (198.252.206.140): icmp_seq=2 ttl=51 time=293 ms
64 bytes from stackoverflow.com (198.252.206.140): icmp_seq=3 ttl=51 time=308 ms
64 bytes from stackoverflow.com (198.252.206.140): icmp_seq=4 ttl=51 time=294 ms
^C
--- superuser.com ping statistics ---
6 packets transmitted, 5 received, 16% packet loss, time 5001ms rtt min/avg/max/mdev =293.672/299.820/308.726/6.920 ms
更新 从我的 Windows 7 ping github.com,成功了!
$ ping github.com
Pinging github.com [192.30.252.129] with 32 bytes of data:
Reply from 192.30.252.129: bytes=32 time=535ms TTL=54
Reply from 192.30.252.129: bytes=32 time=557ms TTL=54
Reply from 192.30.252.129: bytes=32 time=422ms TTL=54
Reply from 192.30.252.129: bytes=32 time=469ms TTL=54
Ping statistics for 192.30.252.129:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 422ms, Maximum = 557ms, Average = 495ms
更新- 似乎没有防火墙
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
不知道接下来该怎么做。任何帮助都非常感谢。谢谢!
答案1
您是否尝试过比较 Ubuntu 和 Windows 7 中的 MTU 值?根据我的个人经验,这更可能是 MTU 问题。
尝试从当前 MTU 值(最有可能是 1492)开始,以 10 的步长(暂时)更改(减少)MTU 值:
sudo ifconfig eth0 mtu 1492
现在,尝试 ping 站点并重复上述步骤。如果您能够成功找到有效的 MTU,请确保通过编辑接口文件 ( /etc/network/interfaces
) 并附加以下行(使用新的 MTU 值)来保留网络的 MTU
mtu 1492