设为首页收藏本站language 语言切换
查看: 2187|回复: 14
收起左侧

[求助] RIP手工汇总路由配置

[复制链接]
发表于 2015-8-20 21:30:41 | 显示全部楼层 |阅读模式
3鸿鹄币
RIP,先是配了明细路由,想试一试手工汇总行不行,但是敲了手工汇总路由以后,汇总没有成功,明细路由也没有了,为什么?

最佳答案

查看完整内容

有可能你汇总的路由超主类,RIP不支持超主类汇总(CIDR) 比如:192.168.1.0/24 192.168.2.0/24 汇总成:192.168.0.0 255.255.0.0 这是不行的,RIP不支持 因为你没有给配置,也没有说清楚到底怎么汇总的,所以只能猜是这个原因了,你可以详细说下你是怎么汇总的大家好分析
发表于 2015-8-20 21:30:42 | 显示全部楼层
本帖最后由 pancunzhu 于 2015-8-20 23:17 编辑

有可能你汇总的路由超主类,RIP不支持超主类汇总(CIDR) 比如:192.168.1.0/24
           192.168.2.0/24
汇总成:192.168.0.0  255.255.0.0
这是不行的,RIP不支持
因为你没有给配置,也没有说清楚到底怎么汇总的,所以只能猜是这个原因了,你可以详细说下你是怎么汇总的大家好分析

沙发 2015-8-20 21:30:42 回复 收起回复
回复

使用道具 举报

发表于 2015-8-20 22:23:43 | 显示全部楼层
两边都敲了V2 和自动汇总 ?
板凳 2015-8-20 22:23:43 回复 收起回复
回复

使用道具 举报

发表于 2015-8-21 09:55:08 | 显示全部楼层
给出配置命令,比较容易分析。
地板 2015-8-21 09:55:08 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-8-21 10:08:56 | 显示全部楼层
duilie1111 发表于 2015-8-20 22:23
两边都敲了V2 和自动汇总 ?

version 2
no auto-summary
自动汇总no了
5# 2015-8-21 10:08:56 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-8-21 10:11:33 | 显示全部楼层
pancunzhu 发表于 2015-8-20 22:56
有可能你汇总的路由超主类,RIP不支持超主类汇总(CIDR) 比如:192.168.1.0/24
           192.168.2.0/2 ...

172.16.8.0/24
172.16.9.0/24
172.16.10.0/24
172.16.11.0/24
汇总为172.16.8.0/22
version 2
no auto-summary
都敲了
6# 2015-8-21 10:11:33 回复 收起回复
回复

使用道具 举报

发表于 2015-8-21 12:57:41 | 显示全部楼层
本帖最后由 pancunzhu 于 2015-8-21 14:57 编辑
pHOoOHq 发表于 2015-8-21 10:11
172.16.8.0/24
172.16.9.0/24
172.16.10.0/24
有几个问题:1、你这样汇总是有问题的,只能汇总成172.16.8.0/20,汇总成22位明显不对2、汇总在路由的出接口下做,不知道你是不是这样做的
3、20位的汇总也只能形成一条172,16.0.0/20的路由
能不能直接给配置和拓扑图我们好分析呢
7# 2015-8-21 12:57:41 回复 收起回复
回复

使用道具 举报

发表于 2015-8-21 15:33:22 | 显示全部楼层
pHOoOHq 发表于 2015-8-21 10:11
172.16.8.0/24
172.16.9.0/24
172.16.10.0/24

恩恩。。试配置了一下,确定你路由消失的问题就出在你汇总的不对,你再去好好理解下路由汇总的问题
8# 2015-8-21 15:33:22 回复 收起回复
回复

使用道具 举报

发表于 2015-8-22 14:54:48 | 显示全部楼层
我不知道你怎么配的。 我试了一下,应该没有问题啊。

简单的R1和R2串口相连。 R1上起4个loopback口:

------ R1 configuration --------

interface Serial3/0
ip address 10.1.1.1 255.255.255.0


interface Loopback8
ip address 172.16.8.1 255.255.255.0
!
interface Loopback9
ip address 172.16.9.1 255.255.255.0
!
interface Loopback10
ip address 172.16.10.1 255.255.255.0
!
interface Loopback11
ip address 172.16.11.1 255.255.255.0
!

router rip
version 2
network 10.0.0.0
network 172.16.0.0
no auto-summary


-------- R2 configuration ----------

!
interface Serial3/0
ip address 10.1.1.2 255.255.255.0
!

router rip
version 2
network 2.0.0.0
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

     2.0.0.0/24 is subnetted, 1 subnets
R       2.2.2.0 [120/1] via 10.1.1.2, 00:00:26, Serial3/0
     172.16.0.0/24 is subnetted, 4 subnets
C       172.16.8.0 is directly connected, Loopback8
C       172.16.9.0 is directly connected, Loopback9
C       172.16.10.0 is directly connected, Loopback10
C       172.16.11.0 is directly connected, Loopback11
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial3/0
R1#show ip rip database
2.0.0.0/8    auto-summary
2.2.2.0/24
    [1] via 10.1.1.2, 00:00:04, Serial3/0
10.0.0.0/8    auto-summary
10.1.1.0/24    directly connected, Serial3/0
172.16.0.0/16    auto-summary
172.16.8.0/24    directly connected, Loopback8
172.16.9.0/24    directly connected, Loopback9
172.16.10.0/24    directly connected, Loopback10
172.16.11.0/24    directly connected, Loopback11
R1#


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

     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     172.16.0.0/24 is subnetted, 4 subnets
R       172.16.8.0 [120/1] via 10.1.1.1, 00:00:01, Serial3/0
R       172.16.9.0 [120/1] via 10.1.1.1, 00:00:01, Serial3/0
R       172.16.10.0 [120/1] via 10.1.1.1, 00:00:01, Serial3/0
R       172.16.11.0 [120/1] via 10.1.1.1, 00:00:01, Serial3/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial3/0
R2#show ip rip database
2.0.0.0/8    auto-summary
2.2.2.0/24    directly connected, Loopback0
10.0.0.0/8    auto-summary
10.1.1.0/24    directly connected, Serial3/0
172.16.0.0/16    auto-summary
172.16.8.0/24
    [1] via 10.1.1.1, 00:00:09, Serial3/0
172.16.9.0/24
    [1] via 10.1.1.1, 00:00:09, Serial3/0
172.16.10.0/24
    [1] via 10.1.1.1, 00:00:09, Serial3/0
172.16.11.0/24
    [1] via 10.1.1.1, 00:00:09, Serial3/0
R2#


==========在R1的serial 3/0接口上做手动汇总 =============

R1#sh running-config interface serial 3/0
Building configuration...

Current configuration : 135 bytes
!
interface Serial3/0
ip address 10.1.1.1 255.255.255.0
ip summary-address rip 172.16.8.0 255.255.252.0
serial restart-delay 0
end



========手动汇总之后 ============

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

     2.0.0.0/24 is subnetted, 1 subnets
R       2.2.2.0 [120/1] via 10.1.1.2, 00:00:11, Serial3/0
     172.16.0.0/24 is subnetted, 4 subnets
C       172.16.8.0 is directly connected, Loopback8
C       172.16.9.0 is directly connected, Loopback9
C       172.16.10.0 is directly connected, Loopback10
C       172.16.11.0 is directly connected, Loopback11
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial3/0
R1#show ip rip database
2.0.0.0/8    auto-summary
2.2.2.0/24
    [1] via 10.1.1.2, 00:00:21, Serial3/0
10.0.0.0/8    auto-summary
10.1.1.0/24    directly connected, Serial3/0
172.16.0.0/16    auto-summary
172.16.8.0/22    int-summary
172.16.8.0/24    directly connected, Loopback8
172.16.9.0/24    directly connected, Loopback9
172.16.10.0/24    directly connected, Loopback10
172.16.11.0/24    directly connected, Loopback11
R1#


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

     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Loopback0
     172.16.0.0/22 is subnetted, 1 subnets
R       172.16.8.0 [120/1] via 10.1.1.1, 00:00:26, Serial3/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.1.1.0 is directly connected, Serial3/0
R2#show ip rip database
2.0.0.0/8    auto-summary
2.2.2.0/24    directly connected, Loopback0
10.0.0.0/8    auto-summary
10.1.1.0/24    directly connected, Serial3/0
172.16.0.0/16    auto-summary
172.16.8.0/22
    [1] via 10.1.1.1, 00:00:06, Serial3/0
R2#


========= 结论 ==========

1) 汇总之后,在本路由器上是看不到这个汇总路由在路由表里的。 汇总路由只存在于RIP database里。 而且是汇总路由会更新给邻居;
2) 邻居会收到汇总路由,然后删去明细路由, 并且把汇总路由放入database以及路由表里。

=====  补充 ======

自我感觉这篇文章对RIP的汇总总结的很好:

http://www.chinabaike.com/t/35933/2014/0624/2550329.html


RIP 汇总拓扑图

RIP 汇总拓扑图
9# 2015-8-22 14:54:48 回复 收起回复
回复

使用道具 举报

发表于 2015-8-22 14:55:38 | 显示全部楼层
pancunzhu 发表于 2015-8-21 12:57
有几个问题:1、你这样汇总是有问题的,只能汇总成172.16.8.0/20,汇总成22位明显不对2、汇总在路由的出接 ...

汇总成22位没有问题, 是对的。
10# 2015-8-22 14:55:38 回复 收起回复
回复

使用道具 举报

发表于 2015-8-22 18:31:43 | 显示全部楼层
本帖最后由 pancunzhu 于 2015-8-22 19:07 编辑
dingjerry 发表于 2015-8-22 14:55
汇总成22位没有问题, 是对的。

额。。是对的,我忽略了前面两个数字是相同的了,昨天我配了一遍,是不行的,今天再配,又对了,可能是模拟器的问题吧,如果你的问题还是没有解决,你还是直接把配置发过来看看吧
11# 2015-8-22 18:31:43 回复 收起回复
回复

使用道具 举报

发表于 2015-8-23 02:23:45 | 显示全部楼层
pancunzhu 发表于 2015-8-22 18:31
额。。是对的,我忽略了前面两个数字是相同的了,昨天我配了一遍,是不行的,今天再配,又对了,可能是模 ...

别急,我已经给楼主发了详细的配置和结果了。 就是帖子还在审核中。
12# 2015-8-23 02:23:45 回复 收起回复
回复

使用道具 举报

发表于 2015-8-24 18:44:16 | 显示全部楼层
手工汇总有错……
两边都配置相同,关闭静态路由条目……
13# 2015-8-24 18:44:16 回复 收起回复
回复

使用道具 举报

发表于 2015-8-25 13:14:41 | 显示全部楼层
我的回复通过审核了。 你可以看看。
14# 2015-8-25 13:14:41 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2015-9-3 23:11:20 | 显示全部楼层
搞定了,配置没有错,IOS的问题,换了一个,一下子就行了
15# 2015-9-3 23:11:20 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-10 08:22 , Processed in 0.066621 second(s), 14 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表