GNS3:Ping 连接在第二个串行接口上​​的路由器时无响应

网络工程 思科 路由 路由器 GNSS3
2021-07-25 21:11:17

我正在尝试使用 3 个路由器建立网络。

“西”和“东”路由器均通过 PA-4T+ 串行接口连接到“中央”路由器。Central 上的第一个接口 (s1/0) 的 IP 为 20.0.0.1,而 s1/2 的 IP 为 20.0.0.2。West 路由器上的 s1/0 的 IP 为 20.0.0.3,并连接到 Central 上的 s1/0。

East 上的 s1/0 获得 IP 20.0.0.4,并连接到 Central 上的 s1/1。当我从 Central ping West 或从 Central ping West 时一切正常,而当我对 East 执行相同操作时,我没有收到任何响应。

我确保在每个接口上运行“no shutdown”指令,并将网络 20.0.0.0 添加到每个路由器上的路由引擎。

东配置:

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname East
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 no ip address
 shutdown
 duplex half
!
interface Serial1/0
 ip address 20.0.0.4 255.0.0.0
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router rip
 network 20.0.0.0
!
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line vty 0 4
 login
!
!
end

中央:

!
!
!
!
!
!
!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Central
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$5lB2$4S/AyQOavlPIFAAThGJGM1
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 10.1.1.1 255.0.0.0
 duplex half
!
interface Serial1/0
 ip address 20.0.0.1 255.0.0.0
 serial restart-delay 0
!
interface Serial1/1
 ip address 20.0.0.2 255.0.0.0
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router rip
 network 10.0.0.0
 network 20.0.0.0
!
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line vty 0 4
 login
!
!
end

西:

!

!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname West
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface FastEthernet0/0
 ip address 10.1.1.2 255.0.0.0
 duplex half
!
interface Serial1/0
 ip address 20.0.0.3 255.0.0.0
 serial restart-delay 0
!
interface Serial1/1
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/2
 no ip address
 shutdown
 serial restart-delay 0
!
interface Serial1/3
 no ip address
 shutdown
 serial restart-delay 0
!
router rip
 network 10.0.0.0
 network 20.0.0.0
!
!
no ip http server
no ip http secure-server
!
!
no cdp log mismatch duplex
!
!
!
!
control-plane
!
!
!
!
!
!
gatekeeper
 shutdown
!
!
line con 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line aux 0
 exec-timeout 0 0
 privilege level 15
 logging synchronous
 stopbits 1
line vty 0 4
 login
!
!
end
1个回答

你的问题是你只有一个网络。路由器网络之间路由,而不是从一个网络返回到同一个网络。您需要在路由器之间建立一个单独的网络。通常,您将有一个/30or/31网络作为两个路由器之间的点对点网络。

您还需要让每个路由器都知道如何访问它们未直接连接的任何网络。这可以通过静态路由或共享路由协议来完成。

尝试这样的事情:

东:

interface Serial1/0
 ip address 20.0.0.1 255.255.255.252
!
router rip
 version 2
 no auto-summary
 network 20.0.0.0
!

中央:

interface Serial1/0
 ip address 20.0.0.5 255.255.255.252
 serial restart-delay 0
!
interface Serial1/1
 ip address 20.0.0.2 255.255.255.252
 serial restart-delay 0
!

router rip
 version 2
 no auto-summary
 network 20.0.0.0
!

西:

interface Serial1/0
 ip address 20.0.0.6 255.255.255.252
!
router rip
 version 2
 no auto-summary
 network 20.0.0.0
!

您在 Central 和 West 的以太网接口上也有问题,因为它们具有相同的网络。您还需要为这些选择单独的网络。