首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >路由器1不知道路由

路由器1不知道路由
EN

Network Engineering用户
提问于 2017-09-03 03:48:33
回答 1查看 210关注 0票数 1

你好,

我已经用版本2激活了所有3个路由器上的rip,但是R1没有打开R3,反之亦然。我已经用他们的ips配置了交换机的vlans。我已经试了一段时间来解决这个问题。

代码语言:javascript
复制
**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

我不知道问题出在哪里。请帮帮忙

编辑:(注释输出)

代码语言:javascript
复制
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
EN

回答 1

Network Engineering用户

发布于 2017-09-03 05:35:09

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

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寻址您的接口。

票数 1
EN
页面原文内容由Network Engineering提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://networkengineering.stackexchange.com/questions/43863

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档