PacketTracer:为什么我不能从一台路由器 ping 到另一台路由器?

网络工程 路由 路由器 ospf 数据包跟踪器
2022-02-11 01:49:54

我正在尝试从路由器 DC_GE ping 到 BE: 在此处输入图像描述

我上传了 Packet Tracer 文件 (v. 7.2.1):

https://www.4shared.com/file/aEsd_0Piiq/Topologie_Ausgangspunkt_MH.html

CD_GE:

CD_GE#show running-config 
Building configuration...

Current configuration : 1198 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname CD_GE
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 10.255.255.11 255.255.255.0
!
interface FastEthernet0/0
 ip address 10.0.11.2 255.255.255.0
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 209.165.0.9 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/0
 ip address 209.165.0.17 255.255.255.248
 duplex auto
 speed auto
!
interface FastEthernet1/1
 ip address 209.165.0.25 255.255.255.248
 duplex auto
 speed auto
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 10
 router-id 1.1.1.1
 log-adjacency-changes
 passive-interface FastEthernet0/1
 passive-interface FastEthernet1/0
 passive-interface FastEthernet1/1
 network 10.0.11.0 0.0.0.255 area 1
 network 209.165.0.8 0.0.0.7 area 1
 network 209.165.0.16 0.0.0.7 area 1
 network 209.165.0.24 0.0.0.7 area 1
 default-information originate
!
router rip
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end


CD_GE#

通用电气:

GE#show running-config 
Building configuration...

Current configuration : 1168 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname GE
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524LPW0-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 ip address 10.255.255.10 255.255.255.255
!
interface GigabitEthernet0/0
 description LAN_GE
 ip address 10.0.12.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 description Transfer_GE
 ip address 10.0.11.1 255.255.255.0
 duplex auto
 speed auto
!
interface Serial0/0/0
 ip address 10.0.10.2 255.255.255.252
!
interface Serial0/0/1
 ip address 10.0.19.1 255.255.255.252
 clock rate 1000000
!
interface Serial0/1/0
 no ip address
 clock rate 2000000
 shutdown
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 10
 router-id 2.2.2.2
 log-adjacency-changes
 passive-interface GigabitEthernet0/0
 network 10.0.11.0 0.0.0.255 area 1
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end 
GE#

BE(已弃用,请参阅下面的修订版):

BE#show running-config
Building configuration...

Current configuration : 957 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname BE
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524NE1A-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 10.0.10.1 255.255.255.252
 clock rate 4000000
!
interface Serial0/0/1
 ip address 10.0.20.1 255.255.255.252
 clock rate 4000000
!
interface Serial0/1/0
 ip address 209.165.0.2 255.255.255.248
 ipv6 address 2001:DB8:123:C000::2/64
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end


BE#

我可以从DC_GEtoGE和 from GEto pingBE通,但不能一直通过。


BE路由器添加到 OSPF:

BE#show running-config 
Building configuration...

Current configuration : 1120 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname BE
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO1941/K9 sn FTX1524NE1A-
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 10.0.10.1 255.255.255.252
 clock rate 4000000
!
interface Serial0/0/1
 ip address 10.0.20.1 255.255.255.252
 clock rate 4000000
!
interface Serial0/1/0
 ip address 209.165.0.2 255.255.255.248
 ipv6 address 2001:DB8:123:C000::2/64
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router ospf 10
 router-id 1.1.1.1
 log-adjacency-changes
 network 10.0.10.0 0.0.0.3 area 0
 network 10.0.20.0 0.0.0.3 area 0
 network 209.165.0.0 0.0.0.7 area 0
!
ip classless
!
ip flow-export version 9
!
!
!
no cdp run
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end


BE#

GE将其添加到区域 A1 和主干区域 0 后。

GE#show ip ospf 
 Routing Process "ospf 10" with ID 2.2.2.2
 Supports only single TOS(TOS0) routes
 Supports opaque LSA
 It is an area border router
 SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
 Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
 Number of external LSA 0. Checksum Sum 0x000000
 Number of opaque AS LSA 0. Checksum Sum 0x000000
 Number of DCbitless external and opaque AS LSA 0
 Number of DoNotAge external and opaque AS LSA 0
 Number of areas in this router is 2. 2 normal 0 stub 0 nssa
 External flood list length 0
    Area 1
        Number of interfaces in this area is 1
        Area has no authentication
        SPF algorithm executed 8 times
        Area ranges are
        Number of LSA 7. Checksum Sum 0x03dd6d
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0
    Area BACKBONE(0)
        Number of interfaces in this area is 2
        Area has no authentication
        SPF algorithm executed 3 times
        Area ranges are
        Number of LSA 7. Checksum Sum 0x02ed96
        Number of opaque link LSA 0. Checksum Sum 0x000000
        Number of DCbitless LSA 0
        Number of indication LSA 0
        Number of DoNotAge LSA 0
        Flood list length 0

GE#
1个回答

您的问题是 DC_GE 和 BE 路由器都不知道如何到达另一个路由器。他们都知道如何到达 GE 路由器,因为他们直接连接到它,并且每个人都知道直接连接的网络。

路由器将丢弃发往其路由表中不存在路由的网络的数据包。路由器通过三种方式学习路由:

  1. 直连网络
  2. 静态配置的路由
  3. 动态通过路由协议

您在 DC_GE 和 GE 路由器之间配置了 OSPF,但参与 OSPF 的 GE 路由器中唯一的接口是直接连接到 DC_GE 的接口,这意味着 GE 正在从 DC_GE 学习路由,但 DC_GE 没有从 GE 学习任何路由。

这意味着 DC_GE 没有到 BE(或 GE 接口之外的任何网络)的路由,因此它不会向 BE 发送任何流量。

相反,BE 没有关于它所连接的 GE 接口之外的任何网络的信息。

您需要使 GE 成为 ABR。在Area 1 中已经有一个接口,但是您需要将朝向BE 的接口设为Area 0 接口。使用区域 0 将该接口添加到 GE 上的 OSPF 应该允许所有三个路由器交换路由信息。