windows:
linux:
route -p add 192.168.1.0 netmask 255.255.255.0 192.168.0.3
route -p add 192.168.2.0 netmask 255.255.255.0 192.168.0.3
route print
route -p add 192.168.2.0 netmask 255.255.255.0 192.168.0.3
route print
linux:
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.0.3
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.0.3
route
route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.0.3
route
转载于:https://blog.51cto.com/xu20cn/71710