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结束。
标签:0.0,route,手动,MASK,255.255,添加,172.16,172.20,路由 From: https://www.cnblogs.com/liusingbon/p/16868747.html