Chinaunix首页 | 论坛 | 博客
  • 博客访问: 680388
  • 博文数量: 740
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4910
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-17 15:16
文章分类

全部博文(740)

文章存档

2011年(1)

2008年(739)

我的朋友

分类:

2008-10-17 15:19:25


  一、有关机器引导的几个要点
  
   7000器的操作系统分别存在rom、flash和credit card(slot)里,机器缺省由 rom中的操作系统引导。在必要时,我们也可以控制它的引导源。
  
  1.当机器引导失败时,用户可以按下列步骤进行处理:
  
  (1)设置计算机为终端仿真模式,用终端线从计算机的串行口(如COM1)连接到路由器的console控制口,然后打开电 源,在60秒内按ctrl+break,直到出现标志符">";
  
  (2)如果失败,则需关掉电源,重新进行一次(注意:从关掉电源到打开电源之间不能少于1分钟);
  
  (3)把config-register置空,
  在标志符">"下输入命令:
  
  >config-register=
  
  (4)显示flash和slot0里的操作系统文件名:
  >dir flash:和>dir slot0:
  
  (5)按以下方法引导(例如:显示的文件是c70 00_112.bin):
  
  >bflash:c7000_112.bin
  
  或 >bslot0:c7000_112.bin
  
  (6)如果startup-config的设置不正确, 也会使机器运行不正常。用户可以删掉它,重新引导:
  
  router#write erase
  
  或 router#erase startup-config
  
  2.用户可以通过以下几个指令维护操作系统文件:
  
  备份flash里的操作系统到tftp:copy flash tftp
  
  备份slot里的操作系统到tftp:copy slot0: tftp
  
  从tftp服务器恢复flash里的操作系统:copy tftp flash
  
  从tftp服务器恢复slot里的操作系统:copy tftp slot0:
  
  3.如果当前引导源的引导不正确,用户可以通过以下几个指令指定另外的引导源:
  
  router#config term
  
  router(config)#config-register 0xnnnn
  
  router(config)#boot system
  
  rom 或
  
  router(config)#boot system
  
  location filename
  
  rooter(config)#boot system
  
  ios_filename tftp_address
  
  其中,当0xnnnn=0x0100时,系统手动引导;当0xnnnn=0x0101时,系统由rom引导;
  当0xn nnn=0x0102~0x010f时,系统用存贮于nvram的指令引导。location是flash或slot0。
  
  二、口令的恢复
  
  当用户忘记或错误地修改了口令,需要进行恢复时,可以按照如下步骤操作:
  
  1.进入rom中断状态
  
  2.读出当前引导方式:
  
  >e/s2000002
  
  3.作如下改变,忽视nvram引导:
  
  >o/r0x**4*
  
  4.重启路由器: >i
  
  5.进入steup模式,对所有问题回答no
  
  6.进入超级用户:
  
  router>enable
  
  7.nvram:
  
  router#config memory
  
  8.恢复初始启动值,并激活所有端口:
  
  "hostname"#config terminal
  
  "hostname"(config)#config-register 0x"value"
  
  "hostname"(#config)#interface xx
  
  "hostname"(config-if)#no shutdown
  
  9.查询口令:
  
  "hostname"#show configuration(show
  
  startup-config)
  
  10.修改和口令:
  
  "hostname"#config terminal
  
  "hostname"(config-line)#lineconsole0
  
  "hostname"(config-line)#login
  
  "hostname"(config-line)#password
  
  xxxxxxxx
  
  "hostname"(config-line)#(cntl-z)
  
  "hostname"#write memory(copy
  
  running-config startup-config)
  
  
【责编:admin】

--------------------next---------------------

阅读(292) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~