資源描述:
《修改靜態(tài)路由的管理距離》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫。
1、修改靜態(tài)路由的管理距離環(huán)境如圖:實驗?zāi)康?,使用靜態(tài)路由命令的參數(shù),修改靜態(tài)路由的管理距離?;驹O(shè)置R1Router>enRouter#configureterminalRouter(config)#hostnamer1r1(config)#interfaceserial1/2r1(config-if)#ipaddress12.12.12.1255.255.255.0r1(config-if)#noshutdownr1(config-if)#exitr1(config)#interfaceloopback0r1(config-if)#ipadd
2、ress1.1.1.1255.255.255.0r1(config-if)#noshutdownr1(config-if)#exitr1(config)#iproute2.2.2.0255.255.255.012.12.12.2r1(config)#exitR2Router>enRouter#configureterminalRouter(config)#hostnamer2r2(config)#interfaceserial1/3r2(config-if)#ipaddress12.12.12.2255.255.255.0r2(config-
3、if)#noshutdownr2(config-if)#exitr2(config)#interfaceloopback0r2(config-if)#ipaddress2.2.2.2255.255.255.0r2(config-if)#noshutdownr2(config-if)#exitr2(config)#iproute1.1.1.0255.255.255.012.12.12.1r2(config)#exit查看路由表R1r1#showiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-
4、BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdown
5、loadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback02.0.0.0/24issubnetted,1subnetsS2.2.2.0[1/0]via12.12.12.212.0.0.0/24issubnetted,1subnetsC12.12.12.0isdirectlyconnected,Serial1/2顯然包含2.2.2.2的路由條目2.0.0.0/24issubnette
6、d,1subnetsS2.2.2.0[1/0]via12.12.12.2在R1的路由表里面R2r2#showiprouteCodes:C-connected,S-static,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,L1-I
7、S-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsS1.1.1.0[1/0]via12.12.12.12.0.0.0/24issubnetted,1subnetsC2.2.2.0isdirectlyconnected,Loopback012
8、.0.0.0/24issubnetted,1subnetsC12.12.12.0isdirectlyconnected,Serial1/3包含1.1.1.1的路由條