新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 网络学院 > 网络应用 > 路由技术 > 正文:路由 思科路由器系列软件安装与升级(6)

路由 思科路由器系列软件安装与升级(6)

新客网 XKER.COM 2007-11-06 来源: 黄明 收藏本文

请使用 dir slot1: 命令来检查镜像是否已复制入slot1。在下文中你可以看见新的镜像 c3640-i-mz.122-7b.bin 已经复制入PCMCIA slot1:中

3600#dir slot1:

Directory of slot1:/

2 -rw- 3748760 c3640-i-mz.120-22.bin

3 -rw- 5996844 c3640-i-mz.122-7b.bin

步骤 5:将引导说明设定为开启时加载新镜像

经由TFTP复制好镜像之后,您可能需要通知路由器启动时加载什么镜像。

检查当前引导说明

此时,新的镜像正在slot1中。您需要设定路由器以新的镜像进行启动。默认设置是,路由器以首个可用镜像进行启动(当配置中没有引导说明时,将启用默认值)。

3600#show running-config

Building configuration...

Current configuration:

!

version 12.0

service timestamps debug uptime

service timestamps log uptime

no service password-encryption

!

hostname 3600

!

boot system flash slot1:c3640-i-mz.120-22.bin

!

ip subnet-zero

!

以下命令出现在配置的开头。在我们上文的实例中,显示路由器boot system命令配置为 boot system flash slot1:c3640-i-mz.120-22.bin。

 

如果您的配置中有 boot system 命令条目,您需要从配置中将它们去除。有关去除boot条目的详情,请参阅 下节。

去除先前的引导说明

如果要去除这些命令,请进入配置终端模式。在配置模式中,您在每个引导说明前键入“no”来取消所有命令。下例说明如何去除当前引导说明。

3600#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600(config)#no boot system flash slot1:c3640-i-mz.120-22.bin

3600(config)#^Z

3600#

“no boot system flash slot1:c3640-i-mz.120-22.bin" ”说明从配置中去除。请通过发出 show running-config 命令检验该命令是否已经去除。

设定新的引导说明

现在设定路由器以新的镜像进行启动。请发出以下命令来设定boot system参数:

boot system flash slot#:{imagename} (imagename = name of the new Cisco IOS software image)

3600#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600(config)#boot system flash slot1:c3640-i-mz.122-7b.bin

3600(config)#^Z

3600#write memory

3d01h: %SYS-5-CONFIG_I: Configured from console by vty0

Building configuration...

3600#

通过发出show version命令来检验是否正在使用 config-register 0x2102 。如果是不同的设定,您可以通过在配置模式中发出以下命令进行改变:

3600#configure terminal

Enter configuration commands, one per line. End with CNTL/Z.

3600(config)#config-register 0x2102

3600(config)#^Z

改变了config - register之后,将在下一次重新加载时变化起作用。

收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐