欢迎来到天天文库
浏览记录
ID:5606026
大小:105.00 KB
页数:3页
时间:2017-12-19
《实验7--ospf路由汇总》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、27-配置OSPF路由汇总在ABR和ASBR上面进行汇总,减少路由条目,降低路由开销。区域间路由汇总和外部路由汇总的命令不一样r1(config)#routerripr1(config-router)#network1.1.1.0R3#showiproute//R3上看到的路由是:E21.0.0.02.0.0.0为了便于学习ASBR上的汇总,变化R1的信息r1(config-router)#intlo1r1(config-if)#ipadd192.168.0.1255.255.255.0r1(config-rout
2、er)#intlo2r1(config-if)#ipadd192.168.1.1255.255.255.0r1(config-router)#intlo3r1(config-if)#ipadd192.168.2.1255.255.255.0r1#showrun//看到三个loopback地址r1#conftr1(config)#routerripr1(config-router)#network192.168.0.0r1(config-router)#network192.168.1.0r1(config-rout
3、er)#network192.168.2.0在R2上来看R2#showiproute//路径前面是R的表示学习到了三条路由192.168.0/1/2.0R3#showiproute//学到了192.168.0.0192.168.1.0192.168.2.0如果R2左边的路由做,那R2的负担会比较重,为了注入的时候能汇总一下,就在ASBR上来进行,因为R2上面我注入的是外部路由,所以当注入的是外部路由的时候,R2就自动成为了ASBR,如果左边R1也是OSPF只不过是其他区域,这个时候就变成了ABR区域间路由汇总和外部
4、路由汇总命令不一样,ABR上用arearange,ASBR上用的是summary-addressr2(config)#routerospf100r2(config-router)#summary-address192.168.0.0255.255.0.0这样就将192.168.0/1/2.0汇总为一条了r2(config-router)#docleariproute*在R3上看路由:r3#cleariproute*r3#showiproute//发现三条汇总为一条了E2192.168.0.0/16掩码为16,以前的
5、掩码是24如果你觉得还不相信,就先NO掉,再往大的汇总R2(config-router)#doshowrunr2(config-router)#nosummary-address192.168.0.0255.255.0.0r2(config-router)#summary-address192.168.0.0255.0.0.0//这样就汇总为8位了r2(config-router)#docleariproute*R3#cleariproute*R3#showiprouter//可以看到汇总为8位了E2192.0.0
6、.0/8在R2下把汇总去除r2(config-router)#doshowrunr2(config-router)#nosummary-address192.0.0.0255.0.0.0上述实验就是让大家明白summary-address是对ASBR进行汇总的.arearange要用到参数areaid而非OSPF区域是没有areaid的,所以我们自然就想到了这个命令肯定用在两边都是OSPF的区域,也就是ABR的汇总。summary-address是不用areaid,所以左边不是OSPF区域就可以使用他来进行汇总,所
7、以ASBR上面用summary-address接下来看一下在ABR上面的汇总:r3#showiproute//由于上面已经NO掉了汇总,所以变为三条路由E192.168.0/1/2.0r2(config)#norouterrip//将R2的rip去除r1(config)#norouterripr2(config)#routerospf100r2(config-router)#network12.1.1.00.0.0.3area1r1(config)#routerospf100r1(config-router)#ne
8、twork1.1.1.00.0.0.255area1r1(config-router)#network12.1.1.00.0.0.3area1r1(config-router)#network192.168.0.00.0.0.255area1r1(config-router)#network192.168.1.00.0.0.255area1r1(config
此文档下载收益归作者所有