資源描述:
《h3c配置ospf stub區(qū)域》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫(kù)。
1、6.3.4???配置stub區(qū)【需求】一個(gè)OSPF自治系統(tǒng)中,A,B運(yùn)行在area0,B,C運(yùn)行在area1,area1為stub區(qū)域,B為ABRrouterA引入到D的外部路由,在area1不存在到D的5類外部路由,而是通過ABR通告的默認(rèn)路由來訪問D?!窘M網(wǎng)圖】?【配置腳本】RouterA配置腳本#sysnameRouterA#routerid1.1.1.1#radiusschemesystem#domainsystem#interfaceEthernet0/0ipaddress10.1.1.1255.255.
2、255.0#interfaceEthernet1/0/1ipaddress50.1.1.2255.255.255.0#interfaceSerial0/0link-protocolpppipaddress20.1.1.1255.255.255.252#interfaceNULL0#interfaceLoopBack0ipaddress1.1.1.1255.255.255.255#ospf1import-routestatic????????/引入靜態(tài)路由/area0.0.0.0network1.1.1.10.0.0
3、.0network10.1.1.00.0.0.255network20.1.1.00.0.0.3#iproute-static100.1.1.0255.255.255.050.1.1.1preference60/配置到100.1.1.0/24的靜態(tài)路由/#user-interfacecon0user-interfacevty04#returnRouterB配置腳本#sysnameRouterB#routerid1.1.1.2#radiusschemesystem#domainsystem#interfaceSeri
4、a0/0link-protocolpppipaddress20.1.1.2255.255.255.252#interfaceSerial0/1link-protocolpppipaddress30.1.1.1255.255.255.252#interfaceNULL0#interfaceLoopBack0ipaddress1.1.1.2255.255.255.255#ospf1area0.0.0.1network30.1.1.00.0.0.3stub???????????????????????????/將area
5、1配置為stub區(qū)域/#area0.0.0.0network1.1.1.20.0.0.0network20.1.1.00.0.0.3#user-interfacecon0user-interfacevty04#returnRouterC配置腳本#sysnameRouterC#routerid1.1.1.3#radiusschemesystem#domainsystem#interfaceEthernet0/0ipaddress40.1.1.1255.255.255.0#interfaceEthernet1/0/1i
6、paddress40.1.2.1255.255.255.0#interfaceSerial0/0link-protocolpppipaddress30.1.1.2255.255.255.252#interfaceNULL0#interfaceLoopBack0ipaddress1.1.1.3255.255.255.255#ospf1area0.0.0.1network1.1.1.30.0.0.0network30.1.1.00.0.0.3network40.1.1.00.0.0.255network40.1.2.0
7、0.0.0.255stub?????????????????????????/將area1配置為stub區(qū)域/#user-interfacecon0user-interfacevty04#return【驗(yàn)證】各路由器可以通過OSPF學(xué)習(xí)到全網(wǎng)的路由信息,并可以ping通對(duì)方網(wǎng)段。RouterC路由表:[RouterC]dispiprouting-table???????????????????????????????????????????RoutingTable:publicnet????????????????
8、?????????????????????????????????????Destination/Mask??ProtocolPre?Cost???????Nexthop????????Interface?????????0.0.0.0/0?????????OSPF????10??1563???????30.1.1.1???????Serial0/0????