调小MTU来获得更稳定的网络
电脑连某些WIFI总是不稳定,时不时断流,干脆调小MTU来保证长连接更稳定。
Win10
- ping -l 1372 -f www.baidu.com
- netsh interface ipv4 show subinterfaces
- netsh interface ipv4 set subinterface “WLAN” mtu=1400 store=persistent
Ubuntu
1 |
|
- netstat -i
- ping -s 1372 -M do www.baidu.com
- sudo nano /etc/systemd/system/rmtu.service
- sudo systemctl enable rmtu && sudo systemctl start rmtu
- cat /sys/class/net/ens33/mtu
调小MTU来获得更稳定的网络
https://occdn.limour.top/2554.html