【问题标题】:Trouble with static routing on a single-router network simulated in GNS3在 GNS3 中模拟的单路由器网络上的静态路由问题
【发布时间】:2022-01-13 10:05:16
【问题描述】:

我正在尝试在 GNS3 中模拟这个简单的单路由器网络,但我无法设置从左半部分(连接到路由器的 fastEthernet0/0)到右半部分(连接到路由器的 fastEthernet0/)的静态路由1)。

这是我在路由器 telnet 中键入的命令序列,但正如您在下面看到的,没有创建静态路由,我不明白为什么。

conf t
interface fastEthernet0/0
ip address 192.168.88.5 255.255.255.0
no shut
interface fastEthernet0/1
ip address 10.0.0.5 255.255.255.0
no shut
end

conf t
ip route 192.168.88.0 255.255.255.0 10.0.0.1
ip route 192.168.88.0 255.255.255.0 10.0.0.2
ip route 10.0.0.0 255.255.255.0 192.168.88.1
ip route 10.0.0.0 255.255.255.0 192.168.88.2
end
show ip route

结果,如您所见,根本没有构建静态路由:

我可能做错了什么?所有帮助将不胜感激。 (注意:我不允许更改网络拓扑或添加新路由器)

【问题讨论】:

    标签: networking routes cisco gns3


    【解决方案1】:

    您最好将路由器的接口用作连接到其他网络的网关。 所以你可以使用:

    ip route 192.168.88.0 255.255.255.0 fastEthernet0/0
    

    您可以说 192.168.88.5,而不是 fastEthernet0/0。两者都是正确的。

    ip route 10.0.0.0 255.255.255.0 10.0.0.5
    

    您的代码的问题是您将整个网络仅针对整个网络中的一个系统

    您到另一个网络的目标应该是您的路由器接口或另一个(下一个)路由器的接口。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-11
      相关资源
      最近更新 更多