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

Windows 双网卡路由配置

程序员文章站 2024-02-14 16:36:22
...
#删除默认路由
route delete 0.0.0.0 
##添加外网路由
route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 4 -p
##添加内网路由
route add 194.168.13.0 mask 255.255.255.0 194.168.13.1 -p
##添加内网其他地址映射
route add 172.18.16.0 mask 255.255.255.0 194.168.13.1 -p

route add 172.18.13.0 mask 255.255.255.0 194.168.13.1 -p




http://172.18.16.11:5050/tcjg/api/



route delete 194.168.13.0
route delete 172.18.16.0
route delete 172.18.13.0

##查看路由配置
route print -4

##查看网关接口
arp -a
##指定路由接口
route add 172.18.16.0 mask 255.255.255.0 194.168.13.1 IF 0x10 -p

route add 172.18.13.0 mask 255.255.255.0 194.168.13.1 IF 0x10 -p