您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 思科设备工作模式简介
CISCO网络工程师内部讲义Cisco路由器配置模式*一般用户模式只限于路由器的某一些有限的权限登录到机器的缺省状态router全局设置状态在特权执行态输入configterminal则进入该态router(config)#特权模式有检查,配置,调试等所有权限通过enable可进入此状态router#其他的设置状态在特权执行状态输入相应的命令时进入例如:interfaceserial2/0router(config-mode)#CISCO网络工程师内部讲义用户模式Router特权模式Router#全局配置模式Router(config)#子配置模式Router(config-mode)#enableconfigureterminalexitendctrl+z具体命令exitendctrl+zexit各种模式间的转换*路由器模式一览Router(config)#RouterenableRouter#configtermExitCtrl-Z(end)用户模式特权模式全局配置模式配置模式模式提示InterfaceRouter(config-if)#SubinterfaceRouter(config-subif)#ControllerRouter(config-controller)#LineRouter(config-line)#RouterRouter(config-router)#IPXrouterRouter(config-ipx-router)#CISCO网络工程师内部讲义wg_ro_c#?Execcommands:access-enableCreateatemporaryAccess-Listentryaccess-profileApplyuser-profiletointerfaceaccess-templateCreateatemporaryAccess-ListentrybfeFormanualemergencymodessettingcdChangecurrentdirectoryclearResetfunctionsclockManagethesystemclockconfigureEnterconfigurationmodeconnectOpenaterminalconnectioncopyCopyfromonefiletoanotherdebugDebuggingfunctions(seealso'undebug')deleteDeleteafiledirListfilesonafilesystemdisableTurnoffprivilegedcommandsdisconnectDisconnectanexistingnetworkconnectionenableTurnonprivilegedcommandseraseEraseafilesystemexitExitfromtheEXEChelpDescriptionoftheinteractivehelpsystem--More--路由器特权模式命令列表CISCO网络工程师内部讲义路由器上下文相关帮助Router#clokTranslatingCLOK%Unknowncommandorcomputername,orunabletofindcomputeraddressRouter#cl?clearclockRouter#clock%Incompletecommand.Router#clock?setSetthetimeanddateRouter#clockset%Incompletecommand.Router#Ctrl-Pclockset?hh:mm:ssCurrentTime•字符解析•命令提示•命令回调CISCO网络工程师内部讲义查看配置情况*控制台IOSSetuputilityshowstartup-configshowrunning-config将配置参数保存到NVRAM中ConfigConfigRAMNVRAMCISCO网络工程师内部讲义showrunning和showstartup命令wg_ro_c#showstartup-configUsing1359outof32762bytes!version12.0!--More--wg_ro_c#showrunning-configBuildingconfiguration...Currentconfiguration:!version12.0!--More--保存在NVRAM中保存在RAM中显示当前运行的和保存的配置情况Router(config)#interfacetypenumberRouter(config-if)#端口配置•type包括serial,ethernet,tokenring,fddi,hssi,loopback,dialer,null,async,atm,bri,andtunnel•number用来识别具体的单个端口Router(config-if)#exit•从当前端口配置模式退出Router(config)#interfacetypeslot/portRouter(config-if)#•模块化端口的表示法配置串口进入全局配置模式Router(config)#interfaceserial0/0Router(config-if)#Router#configuretermRouter(config)#指定某个端口配置串口进入全局配置模式Router(config-if)#clockrate64000Router(config-if)#Router(config)#interfaceserial0/0Router(config-if)#Router#configuretermRouter(config)#Router(config-if)#bandwidth64000Router(config-if)#exitRouter(config)#exitRouter#指定某个端口设置时钟频率(只在DCE端)调协波特率(建议)CISCO网络工程师内部讲义禁用或启用一个接口Router#configuretermRouter(config)#interfaceserial0Router(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceSeria0,changedstatetoup%LINEPROTO-5-UPDOWN:LineProtocolonInterfaceSerial0,changedstatetoup•Enablesaninterfacethatisadministrativelyshutdown启用Router#configuretermRouter(config)#interfaceserial0Router(config-if)#shutdown%LINK-5-CHANGED:InterfaceSerial0,changedstatetoadministrativelydown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodown•Administrativelyturnsoffaninterface管理性关闭Router#showinterfaceserial0/0Serial0isup,lineprotocolisupHardwareisHD64570Internetaddressis10.140.4.2/24MTU1500bytes,BW64Kbit,DLY20000usec,rely255/255,load1/255EncapsulationHDLC,loopbacknotset,keepaliveset(10sec)Lastinput00:00:09,output00:00:04,outputhangneverLastclearingofshowinterfacecountersneverInputqueue:0/75/0(size/max/drops);Totaloutputdrops:0Queueingstrategy:weightedfairOutputqueue:0/1000/64/0(size/maxtotal/threshold/drops)Conversations0/1/256(active/maxactive/maxtotal)ReservedConversations0/0(allocated/maxallocated)5minuteinputrate0bits/sec,0packets/sec5minuteoutputrate0bits/sec,0packets/sec(outputomitted)确认参数修改情况CISCO网络工程师内部讲义Router#showinterfacesserial1Serial1isup,lineprotocolisupHardwareisHD64570Description:64KbLinetoSanJose::::::::::::::::::Operational..................Connectionproblem...Interfaceproblem........Disabled......................Serial1isup,lineprotocolisupSerial1isup,lineprotocolisdownSerial1isdown,lineprotocolisdownSerial1isadministrativelydown,lineprotocolisdownKeepalivesCarrierDetect接口的状态CISCO网络工程师内部讲义给接口配置IP地址*BecauseIPaddressisinterfacespecific,youneedtogotointerfaceRouterenableRouter#configtRouter(config)#ints0/0Router(config-if)#ipaddress172.16.20.2255.255.255.0Router(config-if)#intf0/0Router(config-if)#ipaddress172.16.10.1255.255.255.0Router(config-if)#^ZCISCO网络工程师内部讲义使用ping和trace命令测试连通性和路径Router#ping10.1.1.10Typeescapesequencetoabort.Sending5,100-byteICMPEchosto10.1.1.10,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=4/4/4msRouter#trace10.1.1.10Typeescapesequencetoabort.Tracingtherouteto10.1.1.10110.1.1.104msec4msec4msecRouter#
本文标题:思科设备工作模式简介
链接地址:https://www.777doc.com/doc-3350147 .html