为什么我在这种情况下无法ping通?

网络工程 思科 路由 路由器 数据包追踪器 eigrp
2021-07-10 09:01:44

这是拓扑 我的网络

如您所见,路由器和交换机都已命名,因此我将使用这些名称来解释问题。

首先,这个网络由 VLAN、在 EIGRP 上运行的 WAN 和配置了 DHCP 的路由器组成,让我解释一下这个问题。

正确路由器的网络,特别是直接连接到交换机的网络,工作正常!这 2 个不同的 VLAN 可以毫无问题地进行通信,请记住,除了中间的网络之外,每个网络上都有 2 个不同的 VLAN……但是,此时正确网络上的一台 PC(不是 VLAN,而是整个网络) ) 尝试在通过 WAN 连接连接的任何其他网络上与 PC 通信(ICMP/Ping),它只是失败了。请记住,其他 2 个网络(中间和左侧)没有任何问题。

使用模拟模式后,问题非常非常奇怪......我首先尝试从右侧路由器ping到中间路由器,并且在那里没有问题......然后我尝试从右侧网络上的PC ping到中间路由器中间路由器……令人惊讶的是,数据包中没有目标IPv4地址!!更奇怪的是,当我尝试以其他方式 ping 时,即从中间路由器到正确网络上的 PC 时,数据包立即在中间路由器处被丢弃,为什么?它不知道它自己的IP 地址(是的,我确实在串行端口上为它分配了一个 IP 地址)。以下是模拟模式下的详细图片:

从 PC(右网络)到中间路由器

从中间路由器到 PC(右网络)

中间路由器配置链接 http://pastebin.com/MAj8SaAm

hostname MRouter
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 10.0.0.2 255.255.255.252
!
interface Serial0/0/1
 ip address 10.1.1.1 255.255.255.252
 clock rate 128000
!
interface Serial0/1/0
 ip address 172.16.10.1 255.255.255.252
 clock rate 128000
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 5
 network 10.0.0.0
 network 172.16.0.0
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C
This is the Middle Router
^C
!
!
!
!
line con 0
 password cisco
 login
!
line aux 0
!
line vty 0 4
 password cisco
 login
!
!
!
end

正确路由器配置的链接 http://pastebin.com/Wk8hCv9Z

hostname RRouter
!
!
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
!
!
ip dhcp pool Right
 network 172.16.1.0 255.255.255.240
 default-router 172.16.1.14
ip dhcp pool Left
 network 172.16.2.0 255.255.255.240
 default-router 172.16.2.14
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
 no ip address
 duplex auto
 speed auto
!
interface FastEthernet0/0.20
 encapsulation dot1Q 20
 ip address 172.16.1.14 255.255.255.240
!
interface FastEthernet0/0.25
 encapsulation dot1Q 25
 ip address 172.16.2.14 255.255.255.240
!
interface FastEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 no ip address
 clock rate 2000000
!
interface Serial0/0/1
 ip address 10.1.1.2 255.255.255.252
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 5
 network 172.16.0.0
 network 10.0.0.0
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C
This is the Right Router
^C
!
!
!
!
line con 0
 password 7 0822455D0A16
 login
!
line aux 0
!
line vty 0 4
 password 7 0822455D0A16
 login
!
!
!
end
1个回答

在中间路由器和右侧路由器上都定义10.0.0.0/8172.16.0.0/16网络。使用auto-summary上都使每想到他们拥有这些全汇总网络,这样他们就不会发送任何数据在这些网络向其他路由器。

使用no auto-summary将使每个路由器了解每个路由器的更具体的路由。