Cisco Catalyst 交换机一直处于rommon模式无法启动IOS问题的解决
2012-06-28 18:29
513 查看
发现Cisco Catalyst交换机重启一直处于Rommom模式下,执行Confreg命令选择启动模式为1(从第一个文件启动)时,系统一直重启,无法进入正常界面。enter to boot:0 = disable autoboot1 = the first file from internal flash device2 = commands specified in 'BOOT' environment variable[2]: 1
分析认为可能IOS文件损坏或者被清除,或者启动未找到正确的IOS。若IOS损坏或被清除,则需要从新导入一个IOS到flash,从网上查得有两种方法,一种是TFTP上传,一种是XMODEM方式上传,XMODEM上传比较慢,需要几个小时。TFTP上传是先设置系统变量,然后执行tftpdnld命令,但是发现这个交换机没有tftpdmld命令。后来发现XMODEM命令也不支持。于是只有考虑把flash卡拔下来,放到别的交换机里导入IOS。不过还是先看看flash里有没有IOS再说吧。
检查flash里的IOS。在Rommom模式下输入命令:dir bootflash: 显示flash上的文件,果然第一个文件不是正确的IOS文件,第二个才是正确的IOS文件。这下就容易多了。
用confreg命令设置启动模式为2,然后手动从正确的IOS启动:rommon 2 >boot bootflash:cat4000-is-mz.121-11b.EWRommon reg: 0x30004180Running diags......
等启动完了,进入了IOS界面,于是修改启动参数:Switch>enableSwitch#dir bootflash:查看当前的启动参数:Switch#show bootvar
开始配置:Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#no boot system flash bootflash:cat4000-is-mz.121-8a.EwSwitch(config)#boot system flash bootflash:cat4000-is-mz.121-11b.EWSwitch(config)#end
保存在查看:Switch#write memorySwitch#show bootvarBOOT variable = bootflash:cat4000-is-mz.121-11b.EW,1CONFIG_FILE variable does not existBOOTLDR variable does not existConfiguration register is 0x2102
[/b]参考文档:[/b]http://www.cisco.com/en/US/products/hw/switches/ps663/products_configuration_example09186a0080094ecf.shtml
[/b]相关错误输出:**********************************************************
* *
* Welcome to Rom Monitor for WS-C4948 System. *
* Copyright (c) 2003-2007 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************Rom Monitor Program Version 12.2(31r)SGA1
Supervisor: WS-C4948 Chassis: WS-C4948
Hardware Revisions - Board: 6.0 CPLD: 5 Dagobah: 226
MAC Address : 00-1e-be-38-06-ff
Ip Address : Not set.
Netmask : Not set.
Gateway : Not set.
TftpServer : Not set.
Main Memory : 256 MBytes***** The system will autoboot in 5 seconds *****
Type control-C to prevent autobooting.
. . . . .******** The system will autoboot now ********
config-register = 0x2102
Autobooting using BOOT variable specified file.....Could not find a valid file in BOOT environment variable.
BOOT variable can be set from IOS. To find currently set
Rom Monitor variables, please type 'set' command.For help on choosing a boot method, type 'confreg' command.
本文出自 “小何贝贝的技术空间” 博客,请务必保留此出处http://babyhe.blog.51cto.com/1104064/912072
分析认为可能IOS文件损坏或者被清除,或者启动未找到正确的IOS。若IOS损坏或被清除,则需要从新导入一个IOS到flash,从网上查得有两种方法,一种是TFTP上传,一种是XMODEM方式上传,XMODEM上传比较慢,需要几个小时。TFTP上传是先设置系统变量,然后执行tftpdnld命令,但是发现这个交换机没有tftpdmld命令。后来发现XMODEM命令也不支持。于是只有考虑把flash卡拔下来,放到别的交换机里导入IOS。不过还是先看看flash里有没有IOS再说吧。
检查flash里的IOS。在Rommom模式下输入命令:dir bootflash: 显示flash上的文件,果然第一个文件不是正确的IOS文件,第二个才是正确的IOS文件。这下就容易多了。
用confreg命令设置启动模式为2,然后手动从正确的IOS启动:rommon 2 >boot bootflash:cat4000-is-mz.121-11b.EWRommon reg: 0x30004180Running diags......
等启动完了,进入了IOS界面,于是修改启动参数:Switch>enableSwitch#dir bootflash:查看当前的启动参数:Switch#show bootvar
开始配置:Switch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#no boot system flash bootflash:cat4000-is-mz.121-8a.EwSwitch(config)#boot system flash bootflash:cat4000-is-mz.121-11b.EWSwitch(config)#end
保存在查看:Switch#write memorySwitch#show bootvarBOOT variable = bootflash:cat4000-is-mz.121-11b.EW,1CONFIG_FILE variable does not existBOOTLDR variable does not existConfiguration register is 0x2102
[/b]参考文档:[/b]http://www.cisco.com/en/US/products/hw/switches/ps663/products_configuration_example09186a0080094ecf.shtml
[/b]相关错误输出:**********************************************************
* *
* Welcome to Rom Monitor for WS-C4948 System. *
* Copyright (c) 2003-2007 by Cisco Systems, Inc. *
* All rights reserved. *
* *
**********************************************************Rom Monitor Program Version 12.2(31r)SGA1
Supervisor: WS-C4948 Chassis: WS-C4948
Hardware Revisions - Board: 6.0 CPLD: 5 Dagobah: 226
MAC Address : 00-1e-be-38-06-ff
Ip Address : Not set.
Netmask : Not set.
Gateway : Not set.
TftpServer : Not set.
Main Memory : 256 MBytes***** The system will autoboot in 5 seconds *****
Type control-C to prevent autobooting.
. . . . .******** The system will autoboot now ********
config-register = 0x2102
Autobooting using BOOT variable specified file.....Could not find a valid file in BOOT environment variable.
BOOT variable can be set from IOS. To find currently set
Rom Monitor variables, please type 'set' command.For help on choosing a boot method, type 'confreg' command.
本文出自 “小何贝贝的技术空间” 博客,请务必保留此出处http://babyhe.blog.51cto.com/1104064/912072
相关文章推荐
- VM虚拟机Bridge模式VMnet0网卡无法启动问题的解决
- 如何解决卸载McAfee时出现“处于托管模式时无法删除”问题
- [trouble-shooting]android 无法启动X86模式虚拟机的问题解决。
- 解决Eclipse一直loading workbench无法启动的问题
- 解决tomcat在Debug模式下无法启动问题
- 通过进入单用户模式解决linux中的rc.local修改后无法启动的问题
- 通过进入单用户模式解决linux中的rc.local修改后无法启动的问题
- mysql无法启动,一直处于启动状态解决【Mac osx 】
- 在IAR6.3上使用Jlink无法仿真控制LED,但是下载程序正常,SWO一直处于打开模式解决办法
- 通过进入单用户模式解决linux中的rc.local修改后无法启动的问题
- 解决Eclipse一直loading workbench无法启动的问题
- 3.通过进入单用户模式解决linux中的rc.local修改后无法启动的问题
- 解决Eclipse一直loading workbench无法启动的问题
- 如何解决卸载McAfee时出现“处于托管模式时无法删除”问题(转)
- 解决安装Docker CE for Windows之后VirtualBox无法启动虚拟机的问题
- 解决Ubuntu输入正确密码后无法进入桌面,一直停留在登陆界面的问题
- 今天解决了BXP4.1在windows server 2003下无法自动启动ardencepxe服务的问题
- SVN卸载,修复,等问题:依赖服务或组无法启动.(0x8007042c)解决之一
- 应用程序无法正常启动0xc0000142) 关于win10周年版更新后无法正常使用vc6.0问题的解决方法
- win7下安装 Ubuntu双系统(直接硬盘安装)错误问题完美解决,卡屏,无法启动