OSPF的路由汇总

上传人:壹****1 文档编号:507806061 上传时间:2024-02-13 格式:DOCX 页数:8 大小:61.43KB
返回 下载 相关 举报
OSPF的路由汇总_第1页
第1页 / 共8页
OSPF的路由汇总_第2页
第2页 / 共8页
OSPF的路由汇总_第3页
第3页 / 共8页
OSPF的路由汇总_第4页
第4页 / 共8页
OSPF的路由汇总_第5页
第5页 / 共8页
点击查看更多>>
资源描述

《OSPF的路由汇总》由会员分享,可在线阅读,更多相关《OSPF的路由汇总(8页珍藏版)》请在金锄头文库上搜索。

1、、OSPF路由汇总优点:OSPF路由汇总可以减少路由表条目,减少类型3和类型5的LSA的洪泛,节约带宽资源和减轻路由器 CPU负载,还能够对拓扑的变化本地化。二、OSPF路由汇总的两种类型如下:(两种方式均会演示)l.inter-area(IA) route summarization:发生在 ABR 上2.external route summarization:发生在 ASBR 上三、实验1: OSPF区域间汇总,发生在ABR上,接口信息及IP地址规划,区域信息如拓扑所示。FO/O: 192j?16S. 1. 1/2:4LoopbacM: 10. 1. 1.1A24Loopbactl:10

2、.L.J J1/24LoopbacltS: 10. L.l/24步骤一:配置3台路由器,并且用OSPF。Rl:R1R1enR1#conf tR1(config)#interface f0/0R1(config-if)#ip address 192.168. 1.1 255.255.255.0R1(config-if)#no shR1(config-if)#exitR1(config)#interface loopback 0R1(config-if)#ip address 10.1.1.1 255.255.255.0R1(config-if)#int lo1R1(config-if)#ip a

3、ddress 10.1.2.1 255.255.255.0R1(config-if)#int lo2Rl(config-if)#exitRl(config)#router ospf 1/启用 OSPF 路由协议Rl(config-rou ter)#ne twork 10.1.1.1 0.0.0.0 area 1/发布网段R1(config-r out er)#ne twork 10.1.2.1 0.0.0.0 area 1R1(config-r out er)#ne twork 10.1.3.1 0.0.0.0 area 1R1(config-r out er)#ne twork 192.16

4、8.1.1 0.0.0.0 area 1 R1(config-router)#endR1#R2:R2enR2#conf tR2(config)#interface f0/0R2(config-if)#ip address 192.168. 1.2 255.255.255.0R2(config-if)#no shR2(config-router)#exitR2(config)#interface f0/1R2(config-if)#ip address 192.168. 2.2 255.255.255.0R2(config-if)#no shR2(config-if)#exitR2(config

5、)#router ospf 1/启用 OSPF 路由协议R2(config-rou ter)#ne twork 192.168.1.2 0.0.0.0 area 1/同上R2(config-rou ter)#ne twork 192.168.2.2 0.0.0.0 area 0 R2(config-router)#endR2#R3:R3R3enR3#conf tR3(config)#interface f0/1R3(config-if)#ip addR3(config-if)#ip address 192.168. 2.1 255.255.255.0R3(config-if)#no shR3(

6、config-if)#exitR3(config)#ro uter ospf 1/同上R3(config-rou ter)#ne twork 192.168.2.1 0.0.0.0 area 0R3(config-router)#endR3#査看R3路由表:已经学习到R1三条明细路由R3#sh ip routeCodes: C -connected,S - static, I - IGRP,R - RIP, M - mobile,B -BGPD -EIGRP, EX- EIGRPexternal, O -OSPF, IA - OSPF interareaN1 - OSPF NSSA exter

7、nal type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi -ISTS, L1- IS-ISlevel-1, L2 -ISTS level-2, ia - ISTSinter area* candidatedefault,U per-userstatic route, o ODRP periodic downloaded static routeGateway of last resort is not set10.0.0.0/32 is sub

8、ne tt ed, 3 subne tsO IA10.1.1.1110/3via192.168.2.2,00:01:18,FastEthernet0/1O IA10.1.2.1110/3via192.168.2.2,00:01:18,FastEthernet0/1O IA10.1.3.1110/3via192.168.2.2,00:01:18,FastEthernet0/1O IA 192.168. 1.0/24 110/2 via 192.168. 2.2, 00:01:18, FastEthernet0/1C 192.168.2.0/24 is direc tly connec ted.

9、Fas tEt herne t0/1R3#步骤二:在R2 (ABR)上执行汇总,再次査看R3上路由表R2(config)#router ospf 1R2(config-r out er)#area 1 range 10.1.0.0 255.255.252.0/把3条明细路由汇总为掩码为/22的汇总路由.R2(config-router)#endR2#査看R3路由表:R3#sh ip routeCodes: C -connected,S - static, I - IGRP,R - RIP, M - mobile,B -BGPD -EIGRP, EX- EIGRP external, O -OS

10、PF, IA - OSPF interareaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2El - OSPF external type 1, E2 - OSPF external type 2, E - EGPi -ISTS, L1- IS-IS level-1, L2 -ISTS level-2, ia - ISTSinter area* candidatedefault, U per-userstatic route, o ODRP periodic downloaded static routeGatewa

11、y of last resort is not set10.0.0.0/22 is subne tt ed, 1 subne tsO IA 10.1.0.0 110/65 via 192.168. 2.2, 00:00:16, FastEthernet0/1/变为掩码为22的汇总路由C 192.168.2.0/24 is direc tly connec ted. Fas tEt herne t0/1R3#实验2: OSPF区域间汇总,发生在SSBR)上,拓扑如下,R1运行了 OSPF与RIP两种路由协议,所 以它为ASBR,IP地址与区域已规划好.2811281LR2EIF:L&opback

12、O:10.1. 1.1/Z4Loopbackl: 10. l.fel/4Loopback2: 10. l.:3: 1/Z4FO/D :牌 168. 1. 1/24FO/0:192. 1&8. 1.纣訊_.十資步骤一:在2台路由器上配置OSPF与RIP,并发布网段.R1:RouterRouterenRouter#conf tRouter(config)#hostname R1Rl(config)#interface f0/0R1(config-if)#ip address 192.168. 1.1 255.255.255.0R1(config-if)#no shR1(config)#interf

13、ace loopback 0R1(config-if)#ip address 10.1.1.1 255.255.255.0R1(config-if)#int lo1R1(config-if)#ip address 10.1.2.1 255.255.255.0R1(config-if)#int lo2R1(config-if)#ip address 10.1.3.1 255.255.255.0R1(config-if)#exitR1(config)#router ospf 1/启用 OSPF 路由协议R1(config-rou ter)#ne twork 192.168. 1.1 0.0.0.0

14、 area 0 R1(config-router)#exitR1(config)#router rip/启用 RIP 路由协议R1(config-router)#version 2/扌旨定版本 2R1(config-rou ter)#no aut o-summary /不要自动汇总R1(config-rou ter)#ne twork 10.1.1.0/发布网段R1(config-r out er)#ne twork 10.1.2.0R1(config-r out er)#ne twork 10.1.3.0R1(config-router)#exitR1(config)#endR1#R2:Ro

15、uterRouterenRouter#conf tRouter(config)#hostname R2R2(config)#interface f0/0R2(config-if)#ip address 192.168. 1.2 255.255.255.0R2(config-if)#no shR2(config-if)#exitR2(config)#ro uter ospf 1/同上R2(config-rou ter)#ne twork 192.168.1.2 0.0.0.0 area 0 R2(config-router)#endR2#步骤二:在R1上把RIP与OSPF互相重发布,并査看R2路由表.R1(config)#router ripR1(config-rou ter)#redis trib ute ospf 1 me trie 1/把

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号