windows下 1.添加到网络的路由 route delete 10.41.0.0 mask 255.255.0.0 #静态路由 route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1
Linux下 1.添加到网络的路由
route add -net 10.168.0.0 netmask 255.255.0.0 gw 192.168.218.1 route del -net 10.168.0.0 netmask 255.255.0.0 2.添加默认路由
route add default gw 10.0.0.1 route del default gw 10.0.0.1
3.在linux下设置永久路由的方法: 在/etc/rc.local里添加 route add -net 192.168.2.0/24 gw 192.168.3.254
|