系统相关
首页 > 系统相关> > macOS Windows添加静态路由

macOS Windows添加静态路由

作者:互联网

mac route命令同时访问内外网
sudo route -n add -net 192.168.0.0 -netmask 255.255.255.0 192.168.5.254
sudo route -n add -net 192.168.3.0 -netmask 255.255.255.0 192.168.5.254
sudo route -n add -net 192.168.2.0 -netmask 255.255.255.0 192.168.5.254

 

Windows route命令同时访问内外网
route add -p 192.168.3.0 mask 255.255.255.0 192.168.5.254
route add -p 192.168.0.0 mask 255.255.255.0 192.168.5.254
route add -p 192.168.2.0 mask 255.255.255.0 192.168.5.254

标签:macOS,Windows,route,192.168,255.255,add,5.254,255.0,路由
来源: https://www.cnblogs.com/xiykj/p/15776767.html