侧边栏壁纸
  • 累计撰写 781 篇文章
  • 累计创建 1 个标签
  • 累计收到 1 条评论
标签搜索

固定路由

Dettan
2021-04-10 / 0 评论 / 0 点赞 / 107 阅读 / 1,982 字
温馨提示:
本文最后更新于 2022-04-30,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。
同时连接多个网络
在powerShell 里操作,那里能记住历史命令,有高亮
永久路由:
  网络地址          网络掩码            网关地址      跃点数
192.168.129.0    255.255.254.0       172.27.4.1       1
  192.168.5.0    255.255.254.0       172.27.4.1       1
  192.168.7.0    255.255.254.0       172.27.4.1       1
      0.0.0.0          0.0.0.0      192.168.0.1       1
  172.25.42.0    255.255.254.0       172.27.4.1       1
     10.0.2.0    255.255.254.0       172.27.4.1       1
   10.7.198.0    255.255.254.0       172.27.4.1       1
  172.25.41.0    255.255.254.0       172.27.4.1       1

route -p delete 192.168.129.0 mask 255.255.254.0 192.168.43.1
route -p delete 192.168.5.0 mask 255.255.254.0 192.168.43.1
route -p delete 192.168.7.0 mask 255.255.254.0 192.168.43.1
route -p delete 0.0.0.0 mask 0.0.0.0 192.168.0.1
route -p delete 172.25.42.0 mask 255.255.254.0 192.168.43.1
route -p delete 10.0.2.0 mask 255.255.254.0 192.168.43.1
route -p delete 10.7.198.0 mask 255.255.254.0 192.168.43.1
route -p delete 172.25.41.0 mask 255.255.254.0 192.168.43.1

route -p add 192.168.129.0 mask 255.255.254.0 192.168.43.1
route -p add 192.168.5.0 mask 255.255.254.0 192.168.43.1
route -p add 192.168.7.0 mask 255.255.254.0 192.168.43.1
route -p add 0.0.0.0 mask 0.0.0.0 192.168.0.1
route -p add 172.25.42.0 mask 255.255.254.0 192.168.43.1
route -p add 10.0.2.0 mask 255.255.254.0 192.168.43.1
route -p add 10.7.198.0 mask 255.255.254.0 192.168.43.1
route -p add 172.25.41.0 mask 255.255.254.0 192.168.43.1

route -p delete 192.168.129.0 mask 255.255.254.0 192.168.137.1
route -p delete 192.168.5.0 mask 255.255.254.0 192.168.137.1
route -p delete 192.168.7.0 mask 255.255.254.0 192.168.137.1
route -p delete 0.0.0.0 mask 0.0.0.0 192.168.0.1
route -p delete 172.25.42.0 mask 255.255.254.0 192.168.137.1
route -p delete 10.0.2.0 mask 255.255.254.0 192.168.137.1
route -p delete 10.7.198.0 mask 255.255.254.0 192.168.137.1
route -p delete 172.25.41.0 mask 255.255.254.0 192.168.137.1

route -p add 192.168.129.0 mask 255.255.254.0 192.168.137.1
route -p add 192.168.5.0 mask 255.255.254.0 192.168.137.1
route -p add 192.168.7.0 mask 255.255.254.0 192.168.137.1
route -p add 172.25.42.0 mask 255.255.254.0 192.168.137.1
route -p add 10.0.2.0 mask 255.255.254.0 192.168.137.1
route -p add 10.7.198.0 mask 255.255.254.0 192.168.137.1
route -p add 172.25.41.0 mask 255.255.254.0 192.168.137.1
route -p add 0.0.0.0 mask 0.0.0.0 192.168.0.1

route print
ipconfig
tracert 10.0.2.71




0

评论区