为什么我的网络无法ping通?

网络工程 路由 网络 eigrp
2022-03-06 11:58:33

我有以下网络: 在此处输入图像描述

下面是我的接口表:

在此处输入图像描述

这是我的电脑 IP 地址表:

在此处输入图像描述

这是路由器 ISP 的配置:

ISP#show running-config
Building configuration...

Current configuration : 896 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname ISP
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2901/K9 sn FTX15247AT0-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 172.16.26.1 255.255.255.252
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 209.165.200.225 255.255.255.224
 clock rate 2000000
!
interface Serial0/0/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 172.16.26.0 0.0.0.7
 network 209.165.200.224 0.0.0.31
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器 1 的运行配置:

Building configuration...

Current configuration : 1173 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524G2LA-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 172.16.27.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 209.165.200.226 255.255.255.224
!
interface Serial0/0/1
 ip address 172.16.28.1 255.255.255.0
!
interface Serial0/1/0
 ip address 192.168.26.1 255.255.255.252
!
interface Serial0/1/1
 no ip address
 clock rate 2000000
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 172.16.27.0 0.0.0.255
 network 209.165.200.224 0.0.0.31
 network 172.16.28.0 0.0.0.255
 network 172.16.26.0 0.0.0.7
 network 192.168.26.0 0.0.0.7
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器 2 的运行配置:

Building configuration...

Current configuration : 977 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R2
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX152490NS-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 192.168.27.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 192.168.26.2 255.255.255.252
 clock rate 2000000
!
interface Serial0/0/1
 ip address 192.168.28.1 255.255.255.0
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 192.168.27.0
 network 192.168.28.0
 network 192.168.26.0 0.0.0.7
 auto-summary
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

路由器 3 的运行配置

Building configuration...

Current configuration : 983 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R3
!
!
!
!
!
!
!
!
no ip cef
no ipv6 cef
!
!
!
!
license udi pid CISCO2911/K9 sn FTX1524IMGT-
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
 ip address 192.168.29.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 172.16.28.2 255.255.255.0
 clock rate 2000000
!
interface Serial0/0/1
 ip address 192.168.28.2 255.255.255.0
 clock rate 2000000
!
interface Vlan1
 no ip address
 shutdown
!
router eigrp 1
 network 192.168.29.0
 network 172.16.28.0 0.0.0.255
 network 192.168.28.0
 auto-summary
 
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

我已经使用 EIGRP 成功链接了网络,但是当我尝试从一台 PC 向另一台 PC 发送 ping 时,它没有通过。可能有什么问题或遗漏?

显示来自路由器 ISP 的 IP 路由:

ISP>show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
C       172.16.26.0/30 is directly connected, GigabitEthernet0/0
L       172.16.26.1/32 is directly connected, GigabitEthernet0/0
D       172.16.27.0/24 [90/2170112] via 209.165.200.226, 00:44:21, Serial0/0/0
D       172.16.28.0/24 [90/2681856] via 209.165.200.226, 00:44:21, Serial0/0/0
     192.168.26.0/30 is subnetted, 1 subnets
D       192.168.26.0/30 [90/2681856] via 209.165.200.226, 00:44:21, Serial0/0/0
D    192.168.27.0/24 [90/2682112] via 209.165.200.226, 00:43:04, Serial0/0/0
D    192.168.28.0/24 [90/3193856] via 209.165.200.226, 00:44:21, Serial0/0/0
D    192.168.29.0/24 [90/2682112] via 209.165.200.226, 00:42:23, Serial0/0/0
     209.165.200.0/24 is variably subnetted, 2 subnets, 2 masks
C       209.165.200.224/27 is directly connected, Serial0/0/0
L       209.165.200.225/32 is directly connected, Serial0/0/0

显示来自 R1 的 IP 路由:

R1#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 5 subnets, 3 masks
D       172.16.26.0/30 [90/2170112] via 209.165.200.225, 00:46:02, Serial0/0/0
C       172.16.27.0/24 is directly connected, GigabitEthernet0/0
L       172.16.27.1/32 is directly connected, GigabitEthernet0/0
C       172.16.28.0/24 is directly connected, Serial0/0/1
L       172.16.28.1/32 is directly connected, Serial0/0/1
     192.168.26.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.26.0/30 is directly connected, Serial0/1/0
L       192.168.26.1/32 is directly connected, Serial0/1/0
D    192.168.27.0/24 [90/2170112] via 192.168.26.2, 00:44:45, Serial0/1/0
D    192.168.28.0/24 [90/2681856] via 192.168.26.2, 00:44:45, Serial0/1/0
                     [90/2681856] via 172.16.28.2, 00:44:04, Serial0/0/1
D    192.168.29.0/24 [90/2170112] via 172.16.28.2, 00:44:04, Serial0/0/1
     209.165.200.0/24 is variably subnetted, 2 subnets, 2 masks
C       209.165.200.224/27 is directly connected, Serial0/0/0
L       209.165.200.226/32 is directly connected, Serial0/0/0

显示来自 R2 的 IP 路由:

R2#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
D       172.16.26.0/30 [90/2682112] via 192.168.26.1, 00:49:26, Serial0/0/0
D       172.16.27.0/24 [90/2170112] via 192.168.26.1, 00:49:26, Serial0/0/0
D       172.16.28.0/24 [90/2681856] via 192.168.26.1, 00:49:26, Serial0/0/0
                       [90/2681856] via 192.168.28.2, 00:48:45, Serial0/0/1
     192.168.26.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.26.0/30 is directly connected, Serial0/0/0
L       192.168.26.2/32 is directly connected, Serial0/0/0
     192.168.27.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.27.0/24 is directly connected, GigabitEthernet0/0
L       192.168.27.1/32 is directly connected, GigabitEthernet0/0
     192.168.28.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.28.0/24 is directly connected, Serial0/0/1
L       192.168.28.1/32 is directly connected, Serial0/0/1
D    192.168.29.0/24 [90/2170112] via 192.168.28.2, 00:48:45, Serial0/0/1
     209.165.200.0/27 is subnetted, 1 subnets
D       209.165.200.224/27 [90/2681856] via 192.168.26.1, 00:49:26, Serial0/0/0

显示来自 R3 的 IP 路由:

R3#show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
D       172.16.26.0/30 [90/2682112] via 172.16.28.1, 00:51:10, Serial0/0/0
D       172.16.27.0/24 [90/2170112] via 172.16.28.1, 00:51:10, Serial0/0/0
C       172.16.28.0/24 is directly connected, Serial0/0/0
L       172.16.28.2/32 is directly connected, Serial0/0/0
     192.168.26.0/30 is subnetted, 1 subnets
D       192.168.26.0/30 [90/2681856] via 192.168.28.1, 00:51:10, Serial0/0/1
                        [90/2681856] via 172.16.28.1, 00:51:10, Serial0/0/0
D    192.168.27.0/24 [90/2170112] via 192.168.28.1, 00:51:10, Serial0/0/1
     192.168.28.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.28.0/24 is directly connected, Serial0/0/1
L       192.168.28.2/32 is directly connected, Serial0/0/1
     192.168.29.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.29.0/24 is directly connected, GigabitEthernet0/0
L       192.168.29.1/32 is directly connected, GigabitEthernet0/0
     209.165.200.0/27 is subnetted, 1 subnets
D       209.165.200.224/27 [90/2681856] via 172.16.28.1, 00:51:10, Serial0/0/0
1个回答

您可以有意识地、渐进地解决此类问题:

  1. PC 上的默认网关设置是否正确?它们应设置为路由器接口地址。

  2. 从每台 PC 上,您可以 ping 默认网关吗?

  3. 你能ping通路由器上的其他接口吗?例如,PC0 可以 ping ISP 路由器上的 s0/0/0 接口吗?

  4. 你能ping通下一跳路由器吗?PC0 可以 ping R1 上的任何接口吗?

您可以以与目标 PC 类似的方式继续操作,直到找到问题为止。