资源描述:
《静态路由的参数Track》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、永久存在路由表中的静态路由环境如图:实验目的:使用Track参数,将静态路由有条件的存放在路由表中。说明:要陪着Track参数,首先要使用命令:Track建立一个跟踪表。然后再往路由表里添加静态路由基本设置R1Router>enRouter#configureterminalRouter(config)#hostnamer1r1(config)#interfaceserial1/2r1(config-if)#ipaddress12.12.12.1255.255.255.0r1(config-if)#noshutd
2、ownr1(config-if)#exitr1(config)#interfaceloopback0r1(config-if)#ipaddress1.1.1.1255.255.255.0r1(config-if)#noshutdownr1(config-if)#exitr1(config)#exitR2Router>enRouter#configureterminalRouter(config)#hostnamer2r2(config)#interfaceserial1/3r2(config-if)#ipaddr
3、ess12.12.12.2255.255.255.0r2(config-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#show
4、iprouteCodes: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-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISinte
5、rarea,*-candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnetted,1subnetsC1.1.1.0isdirectlyconnected,Loopback012.0.0.0/24issubnetted,1subnetsC12.12.12.0isdirectlyconnected,Serial1/2R2r2#showip
6、routeCodes: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-IS-ISlevel-1,L2-IS-ISlevel-2ia-IS-ISintera
7、rea,*-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.0.0.0/24issubnetted,1subn
8、etsC12.12.12.0isdirectlyconnected,Serial1/3创建一个跟踪列表r1(config)#track1interfaceloopback0iproutingr1(config-track)#exitr1(config)#exit显示跟踪列表r1#showtrackTrack1InterfaceLoopback0iproutingIProu