10.204网段是内网网段,192.168网段是用来上外网的
ipconfig/all
set /p choice=请输入可以上网的网卡网关,如果没有则输入IP地址:
route delete 0.0.0.0
route delete 10.204.0.0
route add 10.204.0.0 mask 255.255.0.0 10.204.35.1
route add 0.0.0.0 mask 0.0.0.0 %choice%
公网网关:10.4.95.191 内网网关:192.168.1.1 要访问的内网地址:10.204.0.0
sudo route delete 10.4.95.191
sudo route delete 10.204.0.0
sudo route -n add default 10.4.95.191
sudo route -n add -net 10.204.0.0 -netmask 255.255.0.0 192.168.1.1
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有