您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 实验10各种路由协议认识
徐来mobilphone:13913912276E-mail:breeze365@hotmail.com该生用模拟器输入配置,且直接拷屏,没有做一引起处理,内容不可取,暂不修改purpose:目标1、staticrouter(iproute[network][subnetwork][ip])静态路由2、defaultrouter默认路由iproute0.0.0.00.0.0.0.0[ip]ipdefault-network[network]3、dynamicrouter(rip)动态路由NetworkTopology网络拓扑图Weneed:要求1.configureRIPbetweenR1,R2andR3在R1,R2andR3配置RIP路由协议2.configuredefaultnetworkinR1,配置默认路由###############################################################################问题:在模拟器中R1的(config)中不能配置default-networkproblem:ican'tconfiguredefault-networkinR1withsimulation###############################################################################R1PressEntertoStartRouterenRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameR1更改主机名R1(config)#ints0配置serial0R1(config-if)#ipadd2.2.2.1255.255.255.0配置ipR1(config-if)#clockrate56000在DCE端配置时钟频率R1(config-if)#noshut开启端口%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoupR1(config-if)#exit%LINK-3-UPDOWN:InterfaceSerial0,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodownR1(config)#inte0配置Ethernet0R1(config-if)#ipadd1.1.1.1255.255.255.0配置ipR1(config-if)#noshut开启端口%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoupR1(config-if)#exitR1(config)#ints1配置serial1R1(config-if)#ipadd5.5.5.1255.255.255.0配置ipR1(config-if)#noshut开启端口%LINK-3-UPDOWN:InterfaceSerial1,changedstatetoup%LINK-3-UPDOWN:InterfaceSerial1,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial1,changedstatetodownR1(config-if)#%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetoup%LINK-3-UPDOWN:InterfaceSerial1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial1,changedstatetoupR1(config-if)#eixt%Invalidinputdetectedat'^'marker.R1(config-if)#exitR1(config)#^Z%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR1#showiproute显示路由表Codes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC1.1.1.0/24isdirectlyconnected,Ethernet0C2.2.2.0/24isdirectlyconnected,Serial0C5.5.5.0/24isdirectlyconnected,Serial1R1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#routerrip启用rip路由协议R1(config-router)#net1.0.0.0设置宣告网段R1(config-router)#net2.0.0.0设置宣告网段R1(config-router)#net5.0.0.0设置宣告网段R1(config-router)#^Z%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC1.1.1.0/24isdirectlyconnected,Ethernet0C2.2.2.0/24isdirectlyconnected,Serial0C5.5.5.0/24isdirectlyconnected,Serial1R1#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.R1(config)#ip?问题?这里没有配置default(模拟器上没有此命令)access-listNamedaccess-listdhcpConfigureDHCPserverandrelayparametersdomain-lookupEnableIPDomainNameSystemhostnametranslationhostAddanentrytotheiphostnametablehttpHTTPserverconfigurationnatNATconfigurationcommandsrouteEstablishstaticroutessubnet-zeroAllow'subnetzero'subnetsR1(config)#ipdefault-network3.0.0.0%Invalidinputdetectedat'^'marker.R1(config)#^Z%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleR1#showiprouteCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaE1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,*-candidatedefaultU-per-userstaticrouteGatewayoflastresortisnotsetC1.1.1.0/24isdirectlyconnected,Ethernet0C2.2.2.0/24isdirectlyconnected,Serial0C5.5.5.0/24isdirectlyconnected,Serial1R3.3.3.0/24[120/1]via2.2.2.2,00:03:23,Serial0R6.6.6.0/24[120/1]via5.5.5.2,00:05:41,Serial1R1(config)#ip?access-listNamedaccess-listdhcpConfigureDHCPserverandrelayparametersdomain-lookupEnableIPDomainNameSystemhostnametranslationhostAddanentrytotheiphostnametablehttpHTTPserverconfigurationnatNATconfigurationcommandsrouteEstablishstaticroutessubnet-zeroAllow'subnetzero'subnets############################################################################################R2RouterenRouter#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameR2R2(config)#ints1R2(config-if)#ipadd2.2.2.2255.255.255.0R2(config-if)#noshut『配置各个端口ip』%LINK-3-UPDOWN:InterfaceSerial1,changedstatetoupR2(config-if)#exitR2(config)#ints0R2(config-if)#ipadd6.6.6.2255.255.255.0R2(config-if)#clockrate56000R2(config-if)#noshut%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoupR2(config-if)#exitR2(config)#R2(config)#R2(config)#%LINK-3-UPDOWN:InterfaceSerial0,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodownR2(config)#inte0R2(config-if)#ipadd3.3.3.1255.255.255.0R2(config-if)#noshut%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoup%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoup%LINEPROTO-5-UPDOWN:Li
本文标题:实验10各种路由协议认识
链接地址:https://www.777doc.com/doc-2530569 .html