資源描述:
《修改靜態(tài)路由的管理距離》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、修改靜態(tài)路由的管理距離環(huán)境如圖:實(shí)驗(yàn)?zāi)康模褂渺o態(tài)路由命令的參數(shù),修改靜態(tài)路由的管理距離。基本設(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)#ipad
2、dress1.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(confi
3、g-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
4、,B-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-periodic
5、downloadedstaticrouteGatewayoflastresortisnotset1.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/24issub
6、netted,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-ISsummar
7、y,L1-IS-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,Loop
8、back012.0.0.0/24issubnetted,1subnetsC12.12.12.0isdirectlyconnected,Serial1/3包含1.1.1.1的路由條