批处理之路由的添删差改

1. 查看路由

route print

route print 192.168.*    

2. 添加路由

                 //目标地址                //子网掩码         //下一跳         //跳数

route add 192.168.120.0 mask 255.255.255.0 192.168.110.1 metric 5

3. 删除路由

route delete 192.168.120.0

route delete 192.168.120.0 mask 255.255.255.0

4. 变更下一跳

route change 192.168.120.0 mask 255.255.255.0 192.168.110.100

你可能感兴趣的:(批处理之路由的添删差改)