可以从 VPC 1 ping 到路由器和 VPC2,但不能从交换机 ping 到 VPC2 或路由器

网络工程 转变 路由器 思科-ios gns3
2022-03-06 12:08:08

我在 GNS3 中有一个简单的线性拓扑结构,如下所示。

VPC1 > 交换机 > 路由器 > VPC2

我将路由器上的默认静态 IP 路由设置为 0.0.0.0 0.0.0.0 Ethernet0/1 和 Ethernet1/0

我可以毫无问题地从 VPC1 ping 到 VPC2。但是,当我尝试从交换机(受管 Cisco 交换机)ping 到 PC2 时,成功率为 0。我也无法 ping 路由器的接口 1/0(连接到 VPC2)。但我可以从交换机成功 ping,PC1 和路由器接口 0/0(连接到交换机的那个)

交换机上的 IP 配置为其 VLAN1 接口,该接口处于 UP 状态。

所以我的问题是:

1/ 为什么我不能从交换机 ping “过去”路由器的 Ethernet0/0 接口?

2/ 为什么直接从 VPC1 到 VPC2 的 ping 成功,而从交换机的 ping 不成功?它是一个线性拓扑,所以它不应该走相同的路径吗?

这是交换机配置。

hostname CiscoSwitch
!
boot-start-market
boot-end-marker
!
!
logging discriminator EXCESS severity drops 6 msg-body drops EXCESSCOLL
logging buffered 50000
logging console discriminator EXCESS!
no aaa new-model
no ipv6 cef
ipv6 multicast rpf use-bgp
no ip icmp rate-limit unreachable
!
no ip domain-lookup
ip cef
!
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
ip tcp synwait-time 5
!
!
!
!
!
!
!
!
!
interface Ethernet0/0
 duplex auto
!
 interface Ethernet0/1
 duplex auto
!
interface Ethernet0/2
 duplex auto
interface Ethernet0/3
 duplex auto
!
interface Ethernet1/0
 duplex auto
!
 interface Ethernet1/1
 duplex auto
!
interface Ethernet1/2
 duplex auto
interface Ethernet1/3
 duplex auto
!
interface Ethernet2/0
 duplex auto
!
 interface Ethernet2/1
 duplex auto
!
interface Ethernet2/2
 duplex auto
interface Ethernet2/3
 duplex auto
!
interface Ethernet3/0
 duplex auto
!
 interface Ethernet3/1
 duplex auto
!
interface Ethernet3/2
 duplex auto
interface Ethernet3/3
 duplex auto
!
interface Vlan1
 ip address 172.168.1.253 255.255.0.0
 !
 ip default-gateway 172.168.0.254
 !
 no ip http server
 !
 !
 !
 !
 control-plane
 !
 !
 line con 0
  exec-timeout 0 15
  privilege level 15
  logging synchronous
 line aux 0
  exec-timeout 0 0
  privilege level 15
  logging synchronous
 line vty 0 4
  login
 !
 end

路由器配置

hostname R3600
!
boot-start-marker
boot-end-marker
!
enable secret 5 $1$iP0R$xM8wSmb7p7JOMCFVddGXe1
!
no aaa new-model
memory-size iomem 5
clock timezone GMT -6
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!
ipv6 unicast-routing
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
! 
!
!
!
!
interface Ethernet0/0
 description "Interfaz de Ethernet 0, conectada al Switch"
 ip address 172.168.0.254 255.255.0.0
 half-duplex
 ipv6 address 2001:CAFE:DEA:1::25/64
 ipv6 address FE80::1 link-local
!
interface Ethernet1/0
 description "Interfaz de Ethernet 1, conectada al equipo 2"
 ip address 172.169.0.254 255.255.0.0
 half-duplex
 ipv6 address 2001:CAFE:DEA::25/64
 ipv6 address FE80::1 link-local
!
no ip http server
no ip http secure-server
!
!
!
no cdp log mismatch duplex
!
!
!
control-plane

和 vpc2

set pcname PC2
ip 172.169.0.252 172.169.0.254 16
ip 2001:cafe:dea::1/64

我对这个话题很陌生,所以如果我可以提供一些信息,请告诉我。

谢谢。

0个回答
没有发现任何回复~