CISCO路由器的配置.ppt

上传人:xin****828 文档编号:6212998 上传时间:2020-02-19 格式:PPT 页数:31 大小:270.50KB
返回 下载 相关 举报
CISCO路由器的配置.ppt_第1页
第1页 / 共31页
CISCO路由器的配置.ppt_第2页
第2页 / 共31页
CISCO路由器的配置.ppt_第3页
第3页 / 共31页
点击查看更多>>
资源描述
CISCO路由器配置 ZhangXiaoxiaoQQ 857229586 基于路由器的网络互联 网络分段 1 用户状态 1 路由器的常用命令 1 1路由器的状态与模式 普通用户状态 UserEXECMode 如果你登录到路由器上 就进入了普通用户状态 普通用户状态的模式符是在路由器的主机名后带有 Router 在普通用户状态下 只能完成功能有限的检查工作和进行远程的访问 超级用户状态 PrivilegedEXECMode 超级用户状态的模式符是在路由器的主机名后带有 Router 在超级用户状态下 能完成详细的路由器检查 测试工作 进行路由器的配置和远程的访问 如果想在路由器上进行系统配置 首先必须进入超级用户状态 由于在超级用户状态下的用户权限非常大 可对路由器的任何配置进行修改 所以如果用户想进入超级用户状态 必须输入超级用户的口令 其命令格式如下 Router enablePassword 输入的口令是不可见的Router ROM监控状态 ROMMonitorMode 当路由器无法找到一个有效的系统镜像文件 或其配置文件在启动过程中被中断时 系统可进入RON监控状态 在RON监控状态 你可以重新启动路由器或进行系统诊断 它主要用来进行路由器的初始化安装 系统的升级和恢复 你可以在系统启动的前60秒之内 按 Break 键来进入ROM监控状态 ROM监控状态的模式符是 注意没有路由器主机名 普通用户状态 超级用户状态 No Router Yes Yes Router enablePassword Router ROM监控状态 No 在启动的头60秒内 Break 键进入ROM监控 Yes 2 路由器配置模式全局配置模式 GlobalConfigurationMode 全局配置模式的模式符是在路由器的主机名和 之间加上config Router config 全局配置模式下的命令对整个路由器的配置产生影响 进入全局配置模式的命令是在超级用户状态输入命令configure 并且输入所进行配置的命令的来源 终端 Terminal 内存 Memory 或保存在网络服务器上的文件 Network 缺省为终端形式 Router configureConfiguringfromterminal memory ornetwork terminal Router config 子层配置模式 ConfigurationSublevelMode 在全局配置模式下有9个子层配置 1 interface 用来对网络接口 如Ethernet FDDI SerialPort 进行配置 2 controller 可在controller子层模式下配置T1通道接口 3 map list 在Cisco路由器上的ATM接口支持一个静态的映射模式来识别远程主机或路由器的ATM地址 map list子层模式可以配置一个map list 4 map class ATM接口允许使用QoS 服务质量 参数 来控制源路由器如何通过一个交换虚拟线路 SVC 来传送信息流量 使用map class可以定义与一个SVC静态映射相关的QoS参数 子层配置模式 ConfigurationSublevelMode 续 5 subinterface 用来在一个单独的物理接口上配置多个虚拟接口 称为subinterface 6 line 用来对串行终端线路 尤其是异步线路 进行配置 7 Router 用来配置所使用的路由协议 8 Ipx router 用来配置ipx协议 9 Route map 使用route map子层模式来配置路由表 源和目的信息 子层配置模式的模式符是在路由器的主机名和 之间带有config mode mode的值由所配置的上述9个子层决定 在子层配置模式下的命令 如协议 访问控制等 只对所配置的子层产生影响 进入子层配置模式的命令格式 Router config Sublevel name parameters Router config mode Sublevel name就是上述9个子层的名称 其后所跟的参数格式由其所在的子层决定 如 Router config interfaceethernet Router config if 使用检测接口命令 命令格式 Router showinterface interface type interface slot interface number interface number 接口类型 封装类型 接口的状态线路协议的状态IP地址 子网掩码I O速率差错率配置的状况 1 2路由器的检测命令 例如 查看以太网0号接口 Router showinterfaceethernet0Ethernet0isup lineprotocolisupHardwareisMCIEthernet addressis0000 0c00 750c bia0000 0c00 750c Internetaddressis131 108 28 8 subnetmaskis255 255 255 0MTU1500bytes BW10000Kbit DLY100000usec rely255 255 load1 255EncapsulationARPA loopbacknotset keepaliveset 10sec ARPtype ARPA ARPTimeout4 00 00Lastinput0 00 00 output0 00 00 outputhangneverLastclearingof showinterface Counters0 00 00OutputQueue0 40 0drop inputqueue0 75 0dropFiveminutesinputrate0bits sec 0packets sec Fiveminutesoutputrate2000bits sec 4packets sec1127576packetsinput 447251251bytes 0nobufferReceived354125broadcasts 0runts 0giants0inputerrors 0CRC 0frame 0overrun 0ignored0abort5332142packetsoutput 496316039bytes 0underruns0outputerrors 432collisions 0interfaceresets 0restarts 检测协议状态命令格式 Router showprotocols检查路由器的配置命令格式 Router showconfigure测试网络路径状态命令格式 Router trace protocol destination 使用扩展ping命令测试串行线路命令格式 Router ping protocol destination Router pingProtocol ip TargetIPaddress 202 112 23 161Repeatcount 5 20Datagramsize 100 64Timeoutinseconds 2 ExtendedCommands n ySourceaddress 202 112 23 131Typeofservice 0 SetDFbitinIPheader no Datapattern 0 xABCD ffffLoose Strict Record Timestamp Verbose none Sweeprangeofsizes n Typeescapesequencetoabort Sending20 64 bytesICMPEchosto202 112 23 161 Timeoutis2seconds Packethasdatapattern0 xFFFF 使用扩展ping命令测试串行线路示例 Successrateis100percent 20 20 round tripmin avg max 1 2 4ms HDLC的配置方法Router enablePassword Router configureConfiguringfromterminal memory ornetwork terminal Router config interfaceSerial module port encapsulationhdlcipaddress202 112 24 65255 255 255 252keepalive sec 10sec 1 DDN的配置方法 1 3常用数据网络的配置方法 使用enable进入超级用户状态 使用configurationterminal进入配置状态 使用interfaceSerial module port 指明所配置的模块和端口 使用encapsulationppp命令将ppp封装方式 使能 使用IPADDRESS的addresssunmask命令为接口配置IP地址和掩码 选项 使用compressstac将数据压缩 使能 使用keepalive sec 命令设握手信号交互时间间隔 通常系统缺省值为10秒 2 PPP的配置方法 问题 DDN网连接的两个路由器为点点连接 形成一个子网 如何配置 202 112 24 16255 255 255 240 RA RB 202 112 24 18 202 112 24 17 routerADDNconfigurationinterfaceserial0ipaddress202 112 24 18255 255 255 252 endrouteA routerBDDNconfigurationinterfaceserial0ipaddress202 112 24 17255 255 255 252 endrouteB routerAconfigurationinterrfaceserial0ipaddress202 112 24 65255 255 255 240encapsulationX25x25address33012148x25mapip202 112 24 6633012131 endrouterA routerBconfigurationinterrfaceserial0ipaddress202 112 24 66255 255 255 240encapsulationX25x25address33012131x25mapip202 112 24 6533012148 endrouterB 3 公用分组交换网的配置方法 2 RouterConfigurationComponents ExternalConfigurationComponents Router ConsolePort NetworkManagementStation TFTPServer Interface InternalConfigurationComponents CISCO 1 ROMPower ondiagnostics bootstrapprogram2 RAM DRAMStoreroutingtable ARPcache fast switchingcache packetbuffering3 NVRAMNon volatileRAMStoretheRouter sonfiguration4 FlashErasable reprogrammable 可擦 可编程 ROM HoldOperatingSystemimages microcode5 Interfaces Internet workOperatingSystem Programs ActiveConfigureFile Memory BackupConfigureFile OperatingSystems Inter face Router showversion Router showprocessesCPURouter showprotocol Router showconfig Router showflash Router configtermRouter config Router config commands Router config Router config routerprotocolRouter config router Router config router commands Router config router Router config router exitRouter config interfacetypeportRouter config if Router config if commands Router config if Router config if exitRouter config exitRouter 配置模式 2 1IProutingprotocolmode Router config router bgpegpigrpisisiso igrpospfripstaticStaticCLNSRouting Router config routerripRouter config router Routerconfigurationcommands 2 2InterfaceConfigurationMode Router config interfacetypeportRouter config interfaceslot port Serial ethernet tokenring fddi loopback dialer async atm bri tunnel Router config if shutdown Router config interfaceethernet2Router config if media type10baset Router config interfaceseriali oRouter config if bandwidth56Router config if clockrate56000 2 3ShowIProutecommand Paris showiproutecode I IGRP R RIP O OSPF C coneected S static E EGP B BGP i IS IS E1 OSPFexternaltype1route E2 OSPFexternaltype2route L1 IS ISlevel 1route L2 IS ISlevel 2route 到此结束 谢谢观看
展开阅读全文
相关资源
相关搜索

当前位置:首页 > 图纸专区 > 课件教案


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!