i8086
2023-09-18 08:32:25 +08:00
改跳跃点不会立即生效,原本连接依旧保持,最好就是禁用再启用网卡。
脚本供参考。
netsh interface ip set interface interface="以太网" metric=100
netsh interface ip set interface interface="VPN - VPN Client" metric=10
netsh interface set interface name="以太网" admin=disabled
netsh interface set interface name="以太网" admin=enabled
netsh interface set interface name="VPN - VPN Client" admin=disabled
netsh interface set interface name="VPN - VPN Client" admin=enabled