您好,欢迎访问三七文档
CCNA路由器实验一:Route命名、配置密码Route命名:RouteenableRoute(config)#hostnameR1----重命名为R1R1(config)#exitRoute配置密码:1、用户模式进入特权模式:RouteenableRoute#configterminalRoute(config)#enablesecretCISCO----设置加密密码为CISCO(若把secret改为password则为文明显示,在showrunning-config中可以清楚的看出两者的区别)Route(config)#exit2、Console口:RouteenableRoute#configterminalRoute(config)#lineconsole0----进入console口模式Route(config-line)#passwordCISCO----设置密码为CISCO(若要加密密码可在之前:servicepass-encryption启用路由器密码保护-但是在BosonNetsim环境下没有找到这个命令大家知道的可以讨论下)Route(config-line)#login----登入时加密Route(config-line)#exit3、aux口:RouteenableRoute#configterminalRoute(config)#lineaux0----进入aux口模式Route(config-line)#passwordCISCO----设置密码为CISCO(若要加密密码可在之前:servicepass-encryption启用路由器密码保护)Route(config-line)#login----登入时加密Route(config-line)#exit4、vty(telnet远程登陆口):RouteenableRoute#configterminalRoute(config)#linevty04----进入telnet远程登陆口模式(04允许5个用户)Route(config-line)#passwordCISCO----设置密码为CISCO(若要加密密码可在之前:servicepass-encryption启用路由器密码保护)Route(config-line)#login----登入时加密Route(config-line)#exitCCNA实验之二:静态路由的配置今天我们讨论静态路由的配置:如下的拓扑所示router1的配置:PressEntertoStartRouterenableRouter#configterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameRouter1Router1(config)#interfacee0Router1(config-if)#ipaddress192.168.1.2255.255.255.0Router1(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoupRouter1(config-if)#interfaces0Router1(config-if)#ipaddress192.168.2.1255.255.255.0Router1(config-if)#encapsulationpppRouter1(config-if)#clockrate64000Router1(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoup%LINK-3-UPDOWN:InterfaceSerial0,changedstatetodown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodownRouter1(config-if)#exitRouter1(config)#iproute?a.b.c.dDestinationprefixRouter1(config)#iproute192.168.2.0255.255.255.0192.168.2.1//注意:这边的192.168.2.1不能写成S0,实际环境可以,不知道为什么在BosonNetSim环境中就是ping不通Router1(config)#iproute192.168.3.0255.255.255.0192.168.2.2Router1(config)#exitRouter1#copyrunning-configstartup-configDestinationfilename[startup-config]?Buildingconfiguration...[OK]router2的配置:PressEntertoStartRouterenableRouter#configterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameRouter2Router2(config)#interfacee0Router2(config-if)#ipaddress192.168.3.1255.255.255.0Router2(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceEthernet0,changedstatetoupRouter2(config-if)#interfaces0Router2(config-if)#ipaddress192.168.2.2255.255.255.0Router1(config-if)#encapsulationpppRouter1(config-if)#clockrate64000Router2(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceSerial1,changedstatetoupRouter2(config-if)#exitRouter2(config)#iproute192.168.1.0255.255.255.0192.168.2.1Router2(config)#iproute192.168.2.0255.255.255.0192.168.2.2Router2(config)#exitRouter2#copyrunning-configstartup-configDestinationfilename[startup-config]?Buildingconfiguration...[OK]测试:Router2#ping192.168.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4msRouter2#ping192.168.2.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.2.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1/2/4ms//路由器之间试ping了一下,可以ping通,接下来配pcPC1的配置:BosonBOSS5.0Copyright1998-2003BosonSoftware,Inc.UsethecommandhelptogetstartedPressEntertobeginC:C:winip?winipcfgC:winipcfg中进行配置IP:192.168.1.1255.255.255.0网关:192.168.1.2PC2的配置:BosonBOSS5.0Copyright1998-2003BosonSoftware,Inc.UsethecommandhelptogetstartedPressEntertobeginC:C:winip?winipcfgC:winipcfg中进行配置IP:192.168.3.2255.255.255.0网关:192.168.3.1测试:C:ping192.168.1.1Pinging192.168.1.1with32bytesofdata:Replyfrom192.168.1.1:bytes=32time=60msTTL=241Replyfrom192.168.1.1:bytes=32time=60msTTL=241Replyfrom192.168.1.1:bytes=32time=60msTTL=241Replyfrom192.168.1.1:bytes=32time=60msTTL=241Replyfrom192.168.1.1:bytes=32time=60msTTL=241Pingstatisticsfor192.168.1.1:Packets:Sent=5,Received=5,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=50ms,Maximum=60ms,Average=55ms//PC2pingPC1可以ping通实验成功了!呵呵CCNA实验之三:动态路由之RIP协议的配置今天周日,还要继续加班半天啊。呵呵,偷着没事我们继续上次的实验二:静态路由配置后,该讲讲动态路由了。我们先来过目下路由的分类:1:静态路由、动态路由(路由条目是动态的,通过邻接路由器学来的)2:距离矢量(RIP、IGRP、EIGRP)、链路矢量(OSPF)3:有类(RIP_v1、IGRP)、无类(RIP_v2、EIGRP、OSPF)4:AS内(IGP):RIP、IGRP、EIGRP、OSPF;AS外(EGP):EGP、BGP其中RIP在中小企业用的比较多,不同路由器之间兼容性比较好,它是基于跳数来对路径进行度量的。不罗嗦了,我们先看下面的拓扑图:配置Router1:PressEntertoStartRouterenableRouter#configterminalEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Router(config)#hostnameRouter1Router1(config)#interfacee0Router1(config-if)#ipaddress192.168.1.2255.255.255.0Router1(config-if)#noshutdownRouter1(config-if)#interfaces0Router1(config-if)#ipaddress192.168.2.1255.255.255.0Router1(config-if)#encapsulationpppRouter1(config-if)#clockrate?Speed(bitspersecond)120024004800960019200384005600064000720001250001480002500005000008000001000000130000020000004000000Router1(config-if)#clockrate64000Router1(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceSerial0,changedstatetoupRouter1(config-if)#exit%LINK-3-UP
本文标题:CCNA路由器实验
链接地址:https://www.777doc.com/doc-5892748 .html