路由添加之手动
win系统
route print
route add 172.16.0.0 MASK 255.255.0.0 11.0.18.1 //临时,重启无效
route -p add 172.16.0.0 MASK 255.255.0.0 11.0.18.1 //参数p示意永久路由
route delete 172.16.0.0
route CHANGE 172.16.0.0 MASK 255.255.0.0 172.17.0.0 //修改
linux系统
route add -net 172.20.192.0 netmask 255.255.255.0 gw 172.20.195.33 dev eno1 //临时
永久:
echo 'any net 172.20.192.0 netmask 255.255.255.0 gw 172.20.195.33 dev eno1' > /etc/sysconfig/static-routes
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
结束。