红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

[转贴]ubuntu下只能打开百度、谷歌等少数网站的解决办法

发布时间:2010-03-05 14:40:08来源:红联作者:crasyangel
[i=s] 本帖最后由 crasyangel 于 2010-3-25 14:06 编辑 [/i]

引用:

其实这与MTU有关。
Maximum Transmission Unit(MTU), the largest physical packet size, measured in bytes, that a network can transmit. Any messages larger than the MTU are divided into smaller packets before being sent.By optimizing the MTU setting you can gain substantial network performance increases.

Default MTU Size for Different Network Topology
[attach]29636[/attach]

临时改变mtu
引用:
sudo ifconfig eth0 mtu 1492
sudo /etc/init.d/networking restart


永久改变mtu
sudo gedit /etc/network/interfaces(修改interfaces)
引用:
Example
iface eth0 inet static
address 192.168.0.1
network 192.168.0.0
gateway 192.168.0.254
netmask 255.255.255.0
mtu 1492


引用:
文章评论

共有 3 条评论

  1. shenhao0129 于 2010-03-05 22:04:43发表:

    没遇到这样的情况的人路过

  2. xtygaht 于 2010-03-05 18:50:09发表:

    不知道

  3. wofjscs 于 2010-03-05 16:39:28发表:

    阅过