问题
在思科交换机的iso系统软件升级过程中,上传新的bin文件后,仍然启动旧版bin文件。重启后输入命令
Switch(config)#boot system flash:/c3560-ipservicesk9-mz.122-55.SE11.bin
然后重启,依然加载老旧的半版本bin。导致升级不成功。
解决思路
首先查看boot加载文件是否正常,输入命令:
Switch#show boot
BOOT path-list : flash:/c3560-ipservicesk9-mz.122-55.SE11.bin
BOOTHLPR path-list : c3560-ipservices-mz.122-53.SE.bin
Config file : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break : no
Manual Boot : no
HELPER path-list :
Auto upgrade : yes
Auto upgrade path :
NVRAM/Config file
buffer size: 524288
Timeout for Config
Download: 0 seconds
Config Download
via DHCP: disabled (next boot: disabled)
问题已经出现,正常的boot加载时只有一个引导的,这个有一个引导助手一直在引导旧版本的bin文件,如图
解决方法
既然指定了引导的助手,或者说有两个引导配置,那就no掉其中一个引导就行。
输入命令 no boot boothlpr
Switch(config)#no boot boothlpr
随后查看boot引导。
一切正常。随后进行重启,可以按照 boot system 的文件进行加载。
总结
正常的boot引导应该是只有一条引导的,为什么会出现:
BOOTHLPR path-list : c3560-ipservices-mz.122-53.SE.bin
根据原理和命令,我们可以推测出,是在上次引导文件的时候无意间添加的或者是敲错了命令。
原先是要输入:boot system flash:/c3560-ipservices-mz.122-53.SE.bin
结果输入:boot boothlp flash:/c3560-ipservices-mz.122-53.SE.bin
导致的问题。
这也告诉我们在输入命令的时候要保证准确无误。不可马虎大意。
作 者: 余钦
庚子年庚寅月乙酉日