资源描述:
《ospf stub区域路由配置》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、Ospfstub路由分析如下图所示,R2为ABR路由器,R1将直连路由重分布进ospf,在此主要测试ospfstub以及no-summary等命令的使用技巧。R1(config-router)#doshowrun
2、brouterrouterospf1router-id1.1.1.1redistributeconnectedsubnetsnetwork1.1.1.10.0.0.0area0network192.1.1.10.0.0.0area01.没有配置stub区域,查看R3上的路由R2(config-router)#doshowrun
3、broutero
4、uterospf1router-id2.2.2.2network2.2.2.20.0.0.0area0network192.1.1.20.0.0.0area0network193.1.1.10.0.0.0area1R3(config-router)#doshowiprouteGatewayoflastresortisnotset1.0.0.0/32issubnetted,1subnetsOIA1.1.1.1[110/66]via193.1.1.1,00:00:07,Serial0/02.0.0.0/32issubnetted,1subnetsOIA2.2
5、.2.2[110/65]via193.1.1.1,00:00:07,Serial0/03.0.0.0/32issubnetted,1subnetsC3.3.3.3isdirectlyconnected,Loopback010.0.0.0/24issubnetted,4subnetsOE210.213.4.0[110/20]via193.1.1.1,00:00:07,Serial0/0OE210.213.3.0[110/20]via193.1.1.1,00:00:07,Serial0/0OE210.213.2.0[110/20]via193.1.1.1,0
6、0:00:07,Serial0/0OE210.213.1.0[110/20]via193.1.1.1,00:00:07,Serial0/0193.1.1.0/30issubnetted,1subnetsC193.1.1.0isdirectlyconnected,Serial0/0192.1.1.0/30issubnetted,1subnetsOIA192.1.1.0[110/65]via193.1.1.1,00:00:08,Serial0/0总结:R3可以学到区域内的、区域间的、包括ospf外的路由。1.当R2和R3上将area1上配置为stub区域时R
7、2(config-router)#doshowrun
8、brouterouterospf1router-id2.2.2.2log-adjacency-changesarea1stubnetwork2.2.2.20.0.0.0area0network192.1.1.20.0.0.0area0network193.1.1.10.0.0.0area1R3(config-router)#doshowiprouteGatewayoflastresortis193.1.1.1tonetwork0.0.0.01.0.0.0/32issubnetted,1subnetsO
9、IA1.1.1.1[110/66]via193.1.1.1,00:06:14,Serial0/02.0.0.0/32issubnetted,1subnetsOIA2.2.2.2[110/65]via193.1.1.1,00:06:14,Serial0/03.0.0.0/32issubnetted,1subnetsC3.3.3.3isdirectlyconnected,Loopback0193.1.1.0/30issubnetted,1subnetsC193.1.1.0isdirectlyconnected,Serial0/0192.1.1.0/30iss
10、ubnetted,1subnetsOIA192.1.1.0[110/65]via193.1.1.1,00:06:14,Serial0/0O*IA0.0.0.0/0[110/65]via193.1.1.1,00:06:14,Serial0/0//多了一条默认路由总结:多了一条默认路由,ospf外部路由都消失了,区域内和区域间的路由还在。2.当R2上配置no-summary时,在R3上查看区域路由R2(config-router)#doshowrun
11、brouterouterospf1router-id2.2.2.2log-adjacency-changes
12、area1stubno-summarynetwork2.2.2.20.0.0.0