[转载]mtu值怎样设置才网速最快

推荐看原文链接
mtu值怎样设置才网速最快-百度经验
背景:什么是mtu
答:mtu本地大于网络mtu, 传输就会拆包,mtu本地设置小于mtu,就发挥不了网络最大传输能力,合适最好

测试最佳mtu值

ping -l 1500 -f www.baidu.com
  • 如果出现超时结果
正在 Ping www.baidu.com 具有 1500 字节的数据:
请求超时。
请求超时。
请求超时。
请求超时。
  • 就将1500改小一点,直到全能ping
  • 比如ping -l 1480 -f www.baidu.com

修改mtu

1.获取网络名

netsh interface ipv4 show subinterfaces

2.配置mtu

  • 本地连接是第一步的显示值,mtu是测试出的mtu值
# netsh interface ipv4 set subinterface "需修改的连接名" mtu=值 store=persistent
netsh interface ipv4 set subinterface "本地连接" mtu=1480 store=persistent
posted @ 2024-04-19 11:55  要跑啊  阅读(514)  评论(0)    收藏  举报