由 liqishan 在 06-23-2004 15:08 发表:
linux下MTU值的设定
我们知道ADSL的拨号用户在windows下可以通过修改MTU值来使网速达到最佳,譬如说系统默认mtu值是1500,这样好些网站就访问不了( www.baidu.com ),修改的方法就是在注册表中新增个mtu值(相关文章很多)。而在linux是 没有注册表这个东西的,这个问题让我迷惑了好长一段时间,不知如何解决,其实只需要很简单的一个命令
ifconfig eth0 mtu xxx
xxx自己设定,我设的是500,感觉打开网页的速度快了很多,百度也可以上了
现阶段三件事:英语六级,找工作,加强自己的计算机知识
应聘失败只说明有更适合我的工作在后面
My Blog:http://liqishan.512j.com
由 Snoopy 在 06-23-2004 15:27 发表:
奇怪了,我现在在内部,将数字改越小越快 ,怎么回事 ?
有这可能吗 ?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 06-23-2004 15:31 发表:
应该是我感觉有问题,,有没测试的软件 ?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 liqishan 在 06-23-2004 15:35 发表:
> quote:
>
> * * *
>
> 最初由 pinksnoopy 发表
>
> 应该是我感觉有问题,,有没测试的软件 ?
>
> * * *
这我也不知道了,反正没改之前我不可以上百度,改了之后可以上
或许可以用ping测试一下看看时间
现阶段三件事:英语六级,找工作,加强自己的计算机知识
应聘失败只说明有更适合我的工作在后面
My Blog:http://liqishan.512j.com
由 liqishan 在 06-23-2004 15:42 发表:
不会,试试1400,1000,500就知道了,1000好像要快点,mtu最低值是68
现阶段三件事:英语六级,找工作,加强自己的计算机知识
应聘失败只说明有更适合我的工作在后面
My Blog:http://liqishan.512j.com
由 liqishan 在 06-23-2004 16:08 发表:
不知道修改后的值怎么保存,弄得我每次重启后都要重设
现阶段三件事:英语六级,找工作,加强自己的计算机知识
应聘失败只说明有更适合我的工作在后面
My Blog:http://liqishan.512j.com
由 Snoopy 在 06-23-2004 16:10 发表:
我在内部默认是1500的,是不是在内部不起作用 ?
我用ping看不出在时间上有何变化 ?
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 kilo 在 06-23-2004 18:49 发表:
mtu是数据包分段用的吧,ping应该看不出来
由 Snoopy 在 06-24-2004 02:02 发表:
加到vi /etc/sysconfig/network-scripts/ifcfg-eth0
MTU=
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 liqishan 在 06-24-2004 11:56 发表:
> quote:
>
> * * *
>
> 最初由 pinksnoopy 发表
>
> **/etc/sysconfig/network-scripts/ifcfg-eth0
>
>
>
> **
>
> * * *
gentoo下没这个咚咚,locate ifcfg也找不到
现阶段三件事:英语六级,找工作,加强自己的计算机知识
应聘失败只说明有更适合我的工作在后面
My Blog:http://liqishan.512j.com
由 Snoopy 在 06-24-2004 14:36 发表:
gentoo你修改ip的配置文件吧,gentoo我没用过
And then in the evening light, when the bars of freedom fall
I watch the two of you in the shadows on the wall
How in the darkness steals some of the choices from my hand
Then will I begin to under
由 Snoopy 在 06-24-2004 14:36 发表:
pc1: 192.168.168.14 MTU:750
pc2: 192.168.168.200 MTU:1500
从pc1 : ping -f -l 723 192.168.168.200
返回:Packet needs to be fragmented but DF set.
解释:长度723的包+28 = 751 超过了pc1的MTU 750,所以提示需要分组。
从pc1 : ping -f -l 722 192.168.168.200
返回:Reply from 192.168.168.200: bytes=722 time<10ms TTL=128
解释:长度722的包+28 = 750 没有超过了pc1的MTU 750,所以直接通了。
从pc2 :ping -f -l 1472 192.168.168.200
返回:Reply from 192.168.168.200: bytes=1472 time<10ms TTL=128
解释:本机出口网卡MTU=1500,所以不需要分组就可以通。
从pc2 : ping -f -l 1472 192.168.168.14
返回:Request timed out.
解释:长度1472的包+28 = 1500 ,所以数据包在本地不分组,直接发给pc1,但是pc1的MTU=750,显然不