|
请使用 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之后,将在下一次重新加载时变化起作用。
|