資源描述:
《ospf stub區(qū)域路由配置》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、Ospfstub路由分析如下圖所示,R2為ABR路由器,R1將直連路由重分布進(jìn)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區(qū)域,查看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總結(jié):R3可以學(xué)到區(qū)域內(nèi)的、區(qū)域間的、包括ospf外的路由。1.當(dāng)R2和R3上將area1上配置為stub區(qū)域時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//多了一條默認(rèn)路由總結(jié):多了一條默認(rèn)路由,ospf外部路由都消失了,區(qū)域內(nèi)和區(qū)域間的路由還在。2.當(dāng)R2上配置no-summary時,在R3上查看區(qū)域路由R2(config-router)#doshowrun
11、brouterouterospf1router-id2.2.2.2log-adjacency-changes
12、area1stubno-summarynetwork2.2.2.20.0.0.0