window中MTU值设置,解决巨型包问题

1、管理员权限打开cmd
2、输入 netsh interface ipv4 show subinterfaces 命令查看MTU的值如下图:
在这里插入图片描述

3、输入 netsh interface ipv4 set subinterface “本地连接 4” mtu=1492 store=persistent 命令设置MTU 值;(注:本地连接 4 :是网络接口; mtu的值最好设置为1400–1500)
4、执行 netsh interface ipv4 show subinterfaces 命令查看mtu值已经修改完成,如下图:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_39306128/article/details/123362227
MTU