windows查看和设置本机MTU

windows xp

在命令行使用如下的命令:

netsh interface ip show interface

 

windows vista, windows 7

ipv4,在命令行敲入:
netsh interface ipv4 show subinterfaces

来查看ipv4,输出:

       MTU  MediaSenseState   Bytes In  Bytes Out  Interface
----------  ---------------  ---------  ---------  -------------
      1280                1   24321220    6455865  Local Area Connection
4294967295                1          0    1060111  Loopback Pseudo-Interface 1
      1280                5          0          0  isatap.newland.com
      1280                5          0          0  6TO4 Adapter
ipv6,在命令行敲入:
netsh interface ipv6 show subinterfaces
       MTU  MediaSenseState   Bytes In  Bytes Out  Interface
----------  ---------------  ---------  ---------  -------------
      1500                1  146289608   29200474  Local Area Connection
4294967295                1          0      54933  Loopback Pseudo-Interface 1

 

更改MTU

netsh interface ipv4 set subinterface "Local Area Connection" mtu=1300 store=persistent
Local Area Connection是你的网卡的名字,你可以更改为你的。

此命令只能在windows vista和windows 7下面使用

版权所有,禁止转载. 如需转载,请先征得博主的同意,并且表明文章出处,否则按侵权处理.

    分享到:

Leave a Reply

Your email address will not be published. Required fields are marked *