2021年如何使用cisco rommon维护路由器_第1页
2021年如何使用cisco rommon维护路由器_第2页
2021年如何使用cisco rommon维护路由器_第3页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、资料来源:来自本人网络整理!祝您工作顺利!2021年如何使用cisco rommon维护路由器 思科cisco路由器是世界上一流的通讯厂商,他的相关操作也跟别的路由器不太一样,那你知道如何用法cisco rommon维护路由器吗?下面是我整理的一些关于如何用法cisco rommon维护路由器的相关资料,供你参考。 用法cisco rommon维护路由器情景一:路由器的口令复原 为了防止别人知道路由器的口令(特殊是特权口令),威逼本地网络平安,故,很多管理员将口令设得特殊冗杂。但由于路由器的配置完成后,我们就很少在去操作路由器,这样过了一段时间后,我们再因为某种需要需对路由器进展配置时,就可能

2、因遗忘口令而无法进展。 这时候,我们只需要一台pc机(os为windows系列),console电缆一条及相应的接口转换器,还有就是我们在路由器的旁边。然后根据下面的操作,就可以轻松搞定。 1. 设置pc机的超级终端,使我们可以用法路由器的console口挺直对路由器进展操作。注:因其过程特别简洁,笔者为节约篇幅,将其省略。 2. 启动路由器,并在前60秒内按下break或ctrl+break键,进入路由器的rom monitor形式。 3. 下面以初学者最常接触到的cisco 2600系列路由器为例,做一简要描绘。 system bootstrap, version 11.3(2)xa4,

3、release software (fc1) copyright (c) 1999 by cisco systems, inc. tac:home:sw:ios:specials for info c2600 platform with 32768 kbytes of main memory (该路由器为2600系列路由器) (按下ctrl+break键,进入rom monitor形式) rommon 1 ? 注:我们可以用法?或help指令查看该形式下可以用法的指令。 alias set and display aliases command boot boot up an external

4、 process break set/show/clear the breakpoint confreg configuration register utility cont continue executing a downloaded image (省略多行) reset system reset set display the monitor variables stack produce a stack trace sync write monitor environment to nvram sysret print out info from last system return

5、 tftpdnld tftp image download unalias unset an alias unset unset a monitor variable xmodem x/ymodem image download rommon 2 confreg 0x2142 注:用法该指令修改路由器的配置存放器的值,使路由器在下次重起时不要加载启动配置,从而跳过用户口令及特权口令的验证,进入特权形式。 you must reset or power cycle for new config to take effect rommon 3 reset 注:用法该指令重新启动路由器 system

6、 bootstrap, version 11.3(2)xa4, release software (fc1) copyright (c) 1999 by cisco systems, inc. tac:home:sw:ios:specials for info c2600 platform with 32768 kbytes of main memory program load complete, entry point: 0x80008000, size: 0x487758 self decompressing the image : # #(以下启动过程省略) - system conf

7、iguration dialog - would you like to enter the initial configuration dialog? yes/no: n 注:选择no挺直进入cli形式 press return to get started! (按回车键) routeren router# 注:此时用法show version指令查看配置存放器的值为0x2142. router#copy star run 注:用法该指令加载启动配置,然后设置新口令。假设没有该步操作,会导致在下次重起后,新口令设置失败。 router#conf t router(config)#config

8、-register 0x2102 注:路由器下次重起后将加载启动配置,需用法新口令进展验证 router(config)#end router#copy run star 注:保存运行配置到启动配置 destination filename startup-config? building configuration. ok 提示: cisco2500、2000、3000、4000和7000系列路由器的口令复原与上述操作根本一样,其主要差异为修改配置存放器的指令为o/r 0x2142,以及重起指令为i,其它系列的路由器与2600系列根本全都。 用法cisco rommon维护路由器情景二:路由

9、器flash中ios文件的晋级或损坏后的复原 相比拟而言,其次种状况更为少见,但也更为严峻,它经常发生在对路由器ios版本晋级操作失误或其它软硬件故障缘由导致路由器系统崩溃无法进展工作,致使整个网络的瘫痪。 此时,我们经常需要在路由器的rom monitor形式下将其修复。 下面就以笔者的一个同学遇到的问题为例,做一讨论。该生在对一台cisco 2600路由器的ios进展晋级时,出现如下故障: system bootstrap, version 11.3(2)xa4, release software (fc1) copyright (c) 1999 by cisco systems, inc

10、. tac:home:sw:ios:specials for info c2600 platform with 32768 kbytes of main memory loadprog: bad file magic number: 0x0 boot: cannot load flash: (路由器引导程序在重复上述过程,失败后,进入rom monitor形式) system bootstrap, version 11.3(2)xa4, release software (fc1) copyright (c) 1999 by cisco systems, inc. tac:home:sw:io

11、s:specials for info c2600 platform with 32768 kbytes of main memory rommon 1 boot 注:用法该指令,使路由器重新加载flash中的ios文件,失败。 boot: cannot determine first file name on device flash: 注:在确定故障是由路由器不能确定flash中的ios文件后,我们需要将ios文件从tftp server中复原到路由器的flash中。此时我们可是通过两种方法完成此任务:其一,用法安装了cisco tftp server的pc机通过以太网对路由器ios进展复

12、原,其二,在rom monitor形式下用法xmodem(一种能用法console电缆传输文件的传输协议)指令对路由器ios进展复原。 在这里,我们优先用法第一种方法,其步骤为: 1. 将安装了cisco tftp server的pc机通过以太网与路由器的以太网接口相连,运行cisco tftp server 程序。 2. 用法超级终端登陆路由器console口掌握台(路由器已启动,查询故障时已登陆),终端屏幕显示如下: rommon 2 set 注:该指令显示路由器相关默认设置 ps1=rommon ! ip_address= ip_subnet_mask=255.25

13、5.255.0 default_gateway= tftp_server= tftp_timeout=20000 tftp_retry_count=10 tftp_file=/c2600-ik8o3s-mz.122-11.t/ ?=1 3. 检查路由器的默认设置,将pc机的ip地址改为(我们同样可以用法指令tftp_server=192.168.1.x修改该设置,但要保证路由器的ip、默认网关与pc机的ip在统一网段),这样更简洁。 4. 指定要复原的ios文件名,并保证该文件在cisco tftp server根名目下。 ro

14、mmon 3 tftp_file=/c2600-i-mz.121-3.t.bin 注:不要遗忘加上扩展文件名.bin 5. 开头复原ios文件: rommon 4 tftpdnld 注:执行该指令从tftf server下载ios文件到flash,该指令仅适用于cisco 2600系列路由器。 ip_address: ip_subnet_mask: default_gateway: tftp_server: tftp_file: /c2600-i-mz.121-3.t.bin invoke th

15、is command for disaster recovery only. warning: all existing data in all partitions on flash will be lost! do you wish to continue? y/n: n: y receiving /c2600-i-mz.121-3.t.bin from ! !(确认后,路由器开头下载ios文件,省略多行。) file reception completed. copying file /c2600-i-mz.121-3.t.bin to flash. erasin

16、g flash at 0x60fc0000 program flash location 0x60160000 6. 重新启动路由器,运行新的ios rommon 5 reset system bootstrap, version 11.3(2)xa4, release software (fc1) copyright (c) 1999 by cisco systems, inc. tac:home:sw:ios:specials for info c2600 platform with 32768 kbytes of main memory program load complete, entry point: 0x80008000, size: 0x48775

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论