资源描述:
《实验6静态路由和默认路由》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、实验6静态路由和默认路由►实验目的通过本实验,需要掌握以下技能:7XI/771234路由表的概念IProute命令的使用根据需求正确配置静态路由根据需求使用默认路由►拓扑结构1oopbackO:1oopbackO:1oopbackO:2・2221.1.1-13.3・3.3实现1.1.1.0/24,2.220/24,3.3.3.0/24网络之间能互相通信►实验步骤■步骤1:在各路由器上配置IP地址.保证直连链路的连通性R2(config)#intloopbackOR2(config-if)#ipaddress2.2.2.
2、2255.255.255.0R2(config)#intsl/0R2(config-if)#ipaddress12.1.1.2255.255.255.0R2(config-if)#noshutdownRl(config)#intloopbackORl(config-if)#ipaddress1.1.1.1255.255.255.0Rl(config)#intsl/0Rl(config-if)#clockrate64000Rl(config-if)#ipaddress12.1.1.1255.255.255.0Rl(config
3、-if)#noshutdownRl(config)#intsl/1Rl(config-if)#clockrate64000Rl(config-if)#ipaddress13.1.1.1255.255.255.0Rl(config-if)#noshutdownR3(config)#intloopbackOR3(config-if)#ipaddress3.3.33255.255.255.0R3(config)#intsl/1R3(config-if)#ipaddress13.1.1.3255.255.255.0R3(config
4、-if)#noshutdown■步骤2:R2上配置静态路由R2(config)#iproute1.1.1.0255.255.255.0sl/0//下一跳为接口形式,sl/0是点到点的链路,注意应该是R2上的sl/0R2(config)#iproute3.3.3.0255.255.255.012.1.1.1//下一跳为IP地址形式,12.1.1.1是R1上的IP地址■步骤3:R1上配置静态路由Rl(config)#iproute2.2.2.0255.255.255.0sl/0Rl(config)#iproute3.3.3.02
5、55.255.255.0sl/1■步骤4:R3上配置静态路由R3(config)#iproute1.1.1.0255.255.255.0sl/1R3(config)#iproute2.2.2.0255.255.255.0sl/1►实验调试■在R2ZR1ZR3上查看路由表R2#showiprouteCodes:C・connected,S-static,R-RIP,M・mobile,B-BGPD・EIGRP,EX-EIGRPexternal,0・OSPF,IA・OSPFinterareaN1・OSPFNSSAexternalty
6、pe1,N2・OSPFNSSAexternaltype2El・OSPFexternaltype1,E2-OSPFexternaltype2i・IS-IS,su・IS・ISsummary,LJL・IS-ISlevel-1,L2・IS-ISlevel-2ia・IS-ISinterarea,*・candidatedefault,U-per-userstaticrouteo-ODR,P-periodicdownloadedstaticrouteGatewayoflastresortisnotset1.0.0.0/24issubnet
7、ted,1subnetsS1.1.1.0isdirectlyconnected,Seriall/32.0.0.0/24issubnetted,1subnetsC2.2.2.0isdirectlyconnected,LoopbackO3.0.0.0/24issubnetted,1subnetsS3.3.3.0[W]Via12.1.1.112.0.0.0/24issubnetted,1subnetsRl#showiprouteCodes:C・connected,S・static,R-RIP,M・mobile,B・BGPD・EIG
8、RP,EX・EIGRPexternal,0・OSPF,IA・OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2El-OSPFexternaltype1,E2-OSPFexternaltype2i・IS-IS,su-$