欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Windows 修改网卡 MTU

程序员文章站 2022-06-14 23:01:12
...

CMD 查看当前网卡状态
netsh interface ipv4 show subinterfaces

PS C:\Users\Eric>  netsh interface ipv4 show interfaces

Idx     Met         MTU          状态                名称
---  ----------  ----------  ------------  ---------------------------
  1          75  4294967295  connected     Loopback Pseudo-Interface 1
  8          50        1500  connected     WLAN
 21           5        1500  disconnected  以太网
 24          25        1500  disconnected  本地连接* 1
 12          25        1500  disconnected  本地连接* 10
 27          15        1500  disconnected  以太网 2
 10          35        1500  connected     VMware Network Adapter VMnet1
 23          35        1500  connected     VMware Network Adapter VMnet2
  6          35        1500  connected     VMware Network Adapter VMnet8
  3           1        1400  connected     KSA Network Adapter
 11          15        1500  connected     vEthernet (Default Switch)

PS C:\Users\Eric>

修改 MTU,管理员身份运行 CMD:

# subinterface 后面为网卡名称,即上一步 show 出来的名称
netsh interface ipv4 set subinterface "KSA Network Adapter" mtu=1300 store=persistent