資源描述:
《簡單ospf單區(qū)域配置》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫。
1、單區(qū)域OSPF配置一、實(shí)驗(yàn)?zāi)康?.掌握單區(qū)域OSPF的基本配置2.理解鏈路狀態(tài)路由協(xié)議的工作過程3.掌握實(shí)驗(yàn)環(huán)境中虛擬接口的配置二、實(shí)驗(yàn)描述1.在大規(guī)模的網(wǎng)絡(luò)環(huán)境中,OSPF作為鏈路狀態(tài)路由協(xié)議的代表應(yīng)用非常廣泛。2.具有無自環(huán)路,收斂快的特點(diǎn)三、實(shí)驗(yàn)拓?fù)鋵?shí)驗(yàn)步驟第1步:路由器接口的配置Router-A的接口配置:S1/1:192.168.1.1/24loopback0:172.16.1.1/24Router-Bd的接口配置:S1/0:192.168.1.2/24loopback0:172.16.2.1/24Router-A(config)#interfaceloopback0Rout
2、er-A(config-if)#ipaddress172.16.1.1255.255.255.0Router-A(config-if)#noshutRouter-A(config-if)#exitRouter-B(config)#interfaceloopback0Router-B(config-if)#ipaddress172.168.2.1255.255.255.0Router-B(config-if)#noshutRouter-B(config-if)#exit第2步:驗(yàn)證接口配置Router-A#showinterfaceloopback0Loopback0isup,linep
3、rotocolisup(connected)HardwareisLoopbackInternetaddressis172.16.1.1/24MTU1514bytes,BW8000000Kbit,DLY5000usec,reliability255/255,txload1/255,rxload1/255EncapsulationLOOPBACK,loopbacknotsetLastinputnever,outputnever,outputhangneverLastclearingof"showinterface"countersnever第3步:配置OSPF路由協(xié)議Router-A(co
4、nfig)#routerospf1Router-A(config-router)#network192.168.1.00.0.0.255area0Router-A(config-router)#network172.16.1.00.0.0.255area0Router-A(config-router)#exitRouter-B(config)#routerospf1Router-B(config-router)#network192.168.1.00.0.0.255area0Router-B(config-router)#network172.16.2.00.0.0.255area0R
5、outer-B(config-router)#exit第4步:查看路由表Router-A#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-I
6、S-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.16.0.0/16isvariablysubnetted,2subnets,2masksC172.16.1.0/24isdirectlyconnected,Loopback0O172.16.2.1/32[110/782]via192.168.1.2,00:00:27,Serial1/1C192.168.1.0/24isdirectlyconnect
7、ed,Serial1/1Router-B#shiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E