您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 质量控制/管理 > CCNA 路由器基本配置
©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-1路由器的基本配置©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-2完成本章的学习后,您可以完成下面的任务:•创建一个启动或运行配置文件•在全局配置模式下对路由器进行配置•配置一个串口•选择下载IOS文件的路径•如何备份路由器的IOS文件•使用setupmode对路由器进行一些基本配置目标©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-3使用Setup模式配置路由器Router#setup---SystemConfigurationDialog---Atanypointyoumayenteraquestionmark'?'forhelp.Usectrl-ctoabortconfigurationdialogatanyprompt.Defaultsettingsareinsquarebrackets'[]'.Continuewithconfigurationdialog?[yes/no]:yesFirst,wouldyouliketoseethecurrentinterfacesummary?[yes]:no©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-4在Setup模式中配置全局参数Configuringglobalparameters:Enterhostname[Router]:P1R1Theenablesecretisaone-waycryptographicsecretusedinsteadoftheenablepasswordwhenitexists.Enterenablesecret[Usecurrentsecret]:Enterenablepassword[]:%PleasechooseapasswordthatisdifferentfromtheenablesecretEnterenablepassword[]:ciscoEntervirtualterminalpassword[]:ConfigureSNMPNetworkManagement?[no]:ConfigureIP?[yes]:ConfigureIGRProuting?[yes]:YourIGRPautonomoussystemnumber[1]:...©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-5Configuringinterfaceparameters:ConfiguringinterfaceTokenRing0:Isthisinterfaceinuse?[no]:ReturnConfiguringinterfaceSerial0:Isthisinterfaceinuse?[yes]:ConfigureIPonthisinterface?[yes]:ConfigureIPunnumberedonthisinterface?[no]:IPaddressforthisinterface:172.16.97.67Numberofbitsinsubnetfield[0]:ClassBnetworkis172.16.0.0,0subnetbits;maskis255.255.0.0ConfigureNovellonthisinterface?[yes]:noConfiguringinterfaceSerial1:Isthisinterfaceinuse?[yes]:no在Setup模式配置端口©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-6Setup模式下的配置一览功能Thefollowingconfigurationcommandscriptwascreated:hostnameP1R1enablesecret5$1$g722$dg2UVvWG6eekNRTE5LfmM/enablepasswordsanfranlinevty04passwordsanfransnmp-servercommunity!iproutingnodecnetroutingnoxnsroutingnovellroutingnoapolloroutingappletalkroutingnoclnsroutingnovinesnobridgenomopenabled--More--interfaceTokenRing0shutdown!interfaceSerial0ipaddress172.16.97.67255.255.0.0interfaceSerial1shutdown!routerigrp200network172.16.0.0!endUsethisconfiguration?[yes/no]:yes[OK]Usetheenabledmode'configure'commandtomodifythisconfiguration.©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-7Router(config)#RouterRouter#其它配置模式ExitCtrl-Z(end)路由器操作模式一览用户模式用户特权模式全局配置模式配置模式提示符端口Router(config-if)#子端口Router(config-subif)#控制器Router(config-controller)#终端线Router(config-line)#路由Router(config-router)#IPX-路由Router(config-ipx-router)#Route-mapRouter(config-route-map)#©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-8如何改变路由器的标识•为路由器或具体端口配置相应的标识路由器的主机名Router(config)#hostnameP1R1P1R1#欢迎词信息P1R1(config)#bannermotd#AccountingDepartmentYouhaveenteredasecuredsystem.Authorizedaccessonly!#端口标识P1R1(config)#interfaceethernet0P1R1(config-if)#descriptionEngineeringLAN,Bldg.18©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-9配置密码Router(config)#lineconsole0Router(config-line)#loginRouter(config-line)#passwordciscoConsole密码虚终端密码Router(config)#linevty04Router(config-line)#loginRouter(config-line)#passwordciscoEnable密码Router(config)#enablepasswordciscoSecret密码Router(config)#enablesecretccna©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-10其他命令Router(config)#servicepassword-encryption给所有密码加密Router(config)#lineconsole0Router(config-line)#exec-timeout00防止自动退出特权模式Router(config)#lineconsole0Router(config-line)#loggingsynchronous防止命令中断©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-11Router(config)#interfacetypenumberRouter(config-if)#端口的配置•端口类型包括serial,ethernet,tokenring,fddi,hssi,loopback,dialer,null,async,atm,bri,tunnel•number用来标识具体的端口Router(config-if)#exit•退出当前的端口配置模式Router(config)#interfacetypeslot/portRouter(config-if)#•针对Cisco7000和7200系列路由器©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-12Router(config)#interfacetypenumberRouter(config-if)#端口的配置(续)•typeincludesserial,ethernet,tokenring,fddi,hssi,loopback,dialer,null,async,atm,bri,andtunnel•numberisusedtoidentifyindividualinterfacesRouter(config-if)#exitQuitfromcurrentinterfaceconfigurationmodeRouter(config)#interfacetypeslot/portRouter(config-if)#•FortheCisco7000and7200seriesrouters©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-13Router#showinterfacesEthernet0isup,lineprotocolisupHardwareisLance,addressis0060.4740.c2b6(bia0060.4740.c2b6)MTU1500bytes,BW10000Kbit,DLY1000usec,rely255/255,load1/255EncapsulationARPA,loopbacknotset,keepaliveset(10sec)ARPtype:ARPA,ARPTimeout04:00:00Serial1isup,lineprotocolisdownHardwareisMK5025MTU1500bytes,BW1544Kbit,DLY20000usec,rely255/255,load9/255EncapsulationHDLC,loopbacknotset,keepaliveset(10sec)showinterfaces命令......©2004,CiscoSystems,Inc.Allrightsreserved.CCNA640-801v4.0—10-14Router#showinterfaceserial1Serial1isup,lineprotocolisupHardwareiscxBusSerialDescription:56KbLineSanJose-MP::::::::::::::::::::可操作..............连接问题............端口问题............人为不可用...........Serial1isup,lineprotocolisupSerial1isup,lineprotocolisdownSerial1is
本文标题:CCNA 路由器基本配置
链接地址:https://www.777doc.com/doc-3857669 .html