路由器 1 不学习路由

网络工程 路由器 gns3
2022-02-05 23:16:33

在此处输入图像描述

你好,

我已经在版本 2 的所有 3 台路由器上激活了 rip,但 R1 无法 ping R3,反之亦然。我已经用它们的 ips 配置了交换机的 vlan。我已经尝试了一段时间来解决这个问题。

**Router 1 : show ip protocols**
Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 19 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface             Send  Recv  Triggered RIP  Key-chain
    FastEthernet0/0       2     2
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    10.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 120)

**Router 2:show ip protocols**
Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 14 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface             Send  Recv  Triggered RIP  Key-chain
    FastEthernet0/0       2     2
    Serial1/0             2     2
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    10.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.15.1.14           120      00:00:22
  Distance: (default is 120)

**Router 3:show ip protocols**
Routing Protocol is "rip"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Sending updates every 30 seconds, next due in 10 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Redistributing: rip
  Default version control: send version 2, receive version 2
    Interface             Send  Recv  Triggered RIP  Key-chain
    FastEthernet0/0       2     2
    Serial1/0             2     2
  Automatic network summarization is not in effect
  Maximum path: 4
  Routing for Networks:
    10.0.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.15.1.13           120      00:00:09
  Distance: (default is 120)

**RIP config on all 3 routers:**
router rip
 version 2
 network 10.0.0.0
 no auto-summary

**R1#show ip route**
Codes: 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
       i - IS-IS, su - IS-IS summary, 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

     10.0.0.0/24 is subnetted, 1 subnets
C       10.24.0.0 is directly connected, FastEthernet0/0
C    192.168.137.0/24 is directly connected, FastEthernet0/1


**R2#show ip route**
Codes: 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
       i - IS-IS, su - IS-IS summary, 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

     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.15.1.12/30 is directly connected, Serial1/0
C       10.24.0.0/24 is directly connected, FastEthernet0/0
R       10.23.1.0/24 [120/1] via 10.15.1.14, 00:00:15, Serial1/0


R3#show ip route
Codes: 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
       i - IS-IS, su - IS-IS summary, 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

     10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
C       10.15.1.12/30 is directly connected, Serial1/0
R       10.24.0.0/24 [120/1] via 10.15.1.13, 00:00:00, Serial1/0
C       10.23.1.0/24 is directly connected, FastEthernet0/0

我无法弄清楚问题出在哪里。请帮忙

编辑:(评论输出)

R1#show run int fa 0/0 
Building configuration... 
Current configuration : 93 bytes
!
interface FastEthernet0/0 
 ip address 10.24.0.1 255.255.255.0 
 speed 100
 full-duplex 

end 

R1#show run int fa 0/1
Building configuration...
Current configuration : 74 bytes
!
interface FastEthernet0/1 
 ip address dhcp 
 speed 100 
 full-duplex

end

R1#ping 10.15.1.13 (ip of f0/1 of R2) 
Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echos to 10.15.1.13, timeout is 2 seconds: 
..... 
Success rate is 0 percent (0/5) 

R1#ping 10.24.0.2 (ip of f0/0 of R1)
Type escape sequence to abort. 
Sending 5, 100-byte ICMP Echos to 10.24.0.2, timeout is 2 seconds: 
!!!!! 
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/84/92 ms
1个回答

R1 上的接口 F0/0 和 F0/1 配置错误。

R1接口 F0/0 配置为192.168.137.0/24而不是10.24.0.0/24. R1接口 F0/1 配置为10.24.0.0/24而不是192.168.137.0/24. 我建议“交换”您的电缆或重新 IP 寻址您的接口。