对初学者的问题很抱歉。我试图简单地在这个GNS3拓扑上设置静态路由。具体来说,我想让山姆能够平杰克。我已经分配了所有的VPCS机器ip,并为每个VyOS路由器配置了接口,使其与此拓扑相匹配。我想我搞砸了静态路由表。我已经阅读了VyOS文档并尝试了以下命令:
Router1
set protocols static route 10.10.10.0/24 next-hop 10.10.40.1
set protocols static route 10.10.40.0/24 next-hop 10.10.10.2Router2
set protocols static route 10.10.40.0/24 next-hop 10.10.20.1
set protocols static route 10.10.20.0/24 next-hop 10.10.40.2
当我试图从山姆的Jack机器,我得到没有网关找到。
提前感谢!
发布于 2020-08-24 15:24:40
路由器知道它所连接的网络,所以它不需要路由。
它需要一条通往远程网络的路线。所以你必须告诉:
这样就可以删除所设置的静态路由。
delete protocols static route 10.10.10.0/24
delete protocols static route 10.10.40.0/24
set protocols static route 10.10.20.0/24 next-hop 10.10.40.2
set protocols static route 10.10.30.0/24 next-hop 10.10.50.2delete protocols static route 10.10.20.0/24
delete protocols static route 10.10.40.0/24
set protocols static route 10.10.10.0/24 next-hop 10.10.40.1
set protocols static route 10.10.30.0/24 next-hop 10.10.40.1set protocols static route 10.10.10.0/24 next-hop 10.10.50.1
set protocols static route 10.10.20.0/24 next-hop 10.10.50.1https://networkengineering.stackexchange.com/questions/69678
复制相似问题