您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 经营企划 > 01-2-网络基础--第3章 配置命令(CISCO)
1©2002,CiscoSystems,Inc.Allrightsreserved.第一部分网络基础配置命令(CISCO)2通过本章的学习,您应该能够掌握以下内容:课程目标•常用配置路由器方法;•CLI配置模式,模式切换常用的命令;•部分IOS中上下文帮助工具;•常用路由器基本配置命令;•管理配置文件。3路由器配置方法4超级终端连接通过超级终端进行配置5•超级终端界面示例61.路由器命令解释器及路由器配置模式•Router(普通)用户EXEC模式•Router#特权用户EXEC模式•Router(config)#全局配置模式•Router(config-if)#接口配置模式•Router(config-line)#线(line)配置模式路由器的手工配置7CLI配置命令与EXEC模式用户EXEC模式Router接口配置模式Router(config-if)#全局配置模式Router(config)#特权EXEC模式Router#EnableDisableConfigterminalEnd或Exit或Ctrl+ZInterfacexxxExitEnd或Ctrl+ZCLI配置命令与模式8•问号-“?”命令列表参数或子命令•“Tab”键命令解析“检测到错误输入”“不完整的命令”路由器的上下文帮助工具9showhistory:查看历史命令(默认10条)terminalhistorysize:(更改记录历史命令的条数,最大为256)历史命令101.enable2.disable3.hostnamename4.enablepasswordpassword5.enablesecretpassword6.configureterminal常用路由器基本配置命令(1)117.interfacetypecontroller/interfaceorcontroller/slot/interface•interfaceserial0•interfaceserial0/0•interfaceserial0/0/08.ipaddressip-addresssubnet-mask9.shutdown10.noshutdown常用路由器基本配置命令(2)1211.linetypenumber•Console控制台端口•Aux(Auxiliary)辅助端口•Vty(Virtualterminal)虚拟终端线路12.passwordpassword13.login14.exec-timeoutminutesseconds常用路由器基本配置命令(3)1315.exit16.end17.ping•简单ping命令•扩展ping命令18.traceroute常用路由器基本配置命令(4)14RouterA#ping193.1.1.2Typeescapesequencetoabort.Sending5,100-byteICMPEchosto193.1.1.2,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=1456/1464/1468ms1.2.3.4.5.6.发送包数每包大小及类型目标IP超时时间成功率往返所需时间简单ping命令15Center#ping211.90.30.3Typeescapesequencetoabort.Sending5,100-byteICMPEchosto211.90.30.3,timeoutis2seconds:.....Successrateis0percent(0/5)Center#ping超时失败16Center#pingProtocol[ip]:TargetIPaddress:202.206.233.45Repeatcount[5]:Datagramsize[100]:Timeoutinseconds[2]:Extendedcommands[n]:ySourceaddressorinterface:Typeofservice[0]:SetDFbitinIPheader?[no]:Validatereplydata?[no]:Datapattern[0xABCD]:Loose,Strict,Record,Timestamp,Verbose[none]:Sweeprangeofsizes[n]:Typeescapesequencetoabort.Sending5,100-byteICMPEchosto202.206.233.45,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tripmin/avg/max=8/9/12msCenter#扩展ping命令17Center#traceroute(202.206.232.8)1***2211.90.30.530msec4msec4msec3211.90.10.24188msec112msec112msec4*211.94.44.41124msec80msec5211.94.51.25100msec80msec68msec6202.38.123.2172msec92msec92msec7202.112.36.596msec92msec92msec8sjbj3.cernet.net(202.112.46.106)100msec100msec116msec9202.112.53.198124msec120msec116msec10ns.he.edu.cn(202.206.232.8)108msec88msec84msecCenter#traceroute18•bannermotd#•showinterfaces•description•clockset•loggingsynchronous•noipdomain-lookup•terminalmonitor常用路由器高级配置命令19•Bandwidth•showversion•Copyrunning-configstarup-config•erasestartup-config•reload常用路由器高级配置命令20Center#showversionCiscoInternetworkOperatingSystemSoftwareIOS(tm)C2600Software(C2600-I-M),Version12.2(8)T5,RELEASESOFTWARE(fc1)TACSupport:(c)1986-2002byciscoSystems,Inc.CompiledFri21-Jun-0208:50byccaiImagetext-base:0x80008074,data-base:0x80A2BD40ROM:SystemBootstrap,Version11.3(2)XA4,RELEASESOFTWARE(fc1)Centeruptimeis1minuteSystemreturnedtoROMbypower-onSystemimagefileisflash:C2600-i-mz.122-8.T5.bincisco2611(MPC860)processor(revision0x203)with28672K/4096Kbytesofmemory.ProcessorboardIDJAD035105I0(1108224124)M860processor:partnumber0,mask49Bridgingsoftware.X.25software,Version3.0.0.2Ethernet/IEEE802.3interface(s)1Serialnetworkinterface(s)32Kbytesofnon-volatileconfigurationmemory.16384KbytesofprocessorboardSystemflash(Read/Write)Configurationregisteris0x2104Showversion21
本文标题:01-2-网络基础--第3章 配置命令(CISCO)
链接地址:https://www.777doc.com/doc-3701094 .html