发信人: suncisco()
整理人: sglzx(2001-08-20 21:39:58), 站内信件
|
Cisco路由器的应用比较广泛,目前,已经越来越为组网技术人员所关注。下面,笔 者将结合自己组建网络的经验,以Cisco 7000为例,谈两点体会:
____一、有关机器引导的几个要点
____Cisco 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引导 ;当0x nnnn=0x0102~0x010f时,系统用存贮于nvram的指令引导。location是fla sh或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)
-- ※ 来源:.月光软件站 http://www.moon-soft.com.[FROM: 202.96.238.25]
|
|