Cisco路由器无法启动image

来源:互联网 发布:汉字译拼音软件 编辑:程序博客网 时间:2024/05/21 17:14


今天遇到了一个很奇怪的事情,上电后,isr4400无法加载image,查看了一下bootflash,发现又是好的,image也是存在的而且size也是完好无损,断电、reset都试过了,每次都是直接进入rommon。


1. 检车bootflash文件系统是否完好。 结果是好的

rommon 4 > dir bootflash: File System: EXT2/EXT311         16384     drwx------     lost+found811201     4096      drwxrwxrwx     .prst_sync12         89328     -rw-r--r--     bgp-pns-ovld1.config14         1752      -rw-r--r--     bgp-pns-ovld1.clean827425     4096      drwxrwxrwx     .installer227137     4096      drwxr-xr-x     core64897      4096      drwxr-xr-x     .rollback_timer13         0         -rw-------     tracelogs.874648961     229376    drwxrwxrwx     tracelogs18         2151      -rw-r--r--     crdc-config730081     4096      drwxrwx---     vman_fdb21         98207     -rw-r--r--     test275809     4096      drwxr-xr-x     quit


2. unset BOOT, 让路由器自己去选择image

<strong>rommon 1 > unset BOOT</strong>rommon 2 > setPS1=rommon ! > MCP_STARTUP_TRACEFLAGS=00000000:00000000RET_2_RTS=EULA_ACCEPTED=TRUECRASHINFO=crashinfo_FAILEDTFTP_FILE=bzImage.SSA.binIP_ADDRESS=10.75.167.164IP_SUBNET_MASK=255.255.255.0DEFAULT_GATEWAY=10.75.167.1TFTP_SERVER=10.74.9.48THRPUT=2000000LICENSE_BOOT_LEVEL=appxk9,appxk9:esg;uck9,uck9:esg;securityk9,securityk9:esg;BSI=0RANDOM_NUM=958801295RET_2_RCALTS=1406805522?=0rommon 3 > syncrommon 4 > resetResetting .......Initializing Hardware ...System integrity status: 00000610Rom image verified correctlySystem Bootstrap, Version 12.2(20130621:100325) [dgreeson-15_3_3R_S 101], DEVELOPMENT SOFTWARECopyright (c) 1994-2013  by cisco Systems, Inc.Compiled Fri 06/21/2013  6:12:33.26 by dgreesonCurrent image running: Boot ROM0Last reset cause: PowerCycleRequestCisco ISR4451/K9 platform with 4194304 Kbytes of main memoryrommon 1 > set

原因就是,硬件工程师调试板卡的时候,把config register更改了,直接进入rommon,启动diag。

比较有意思的是,不能直接把confreg更改成2102,而必须是先更改成2142,然后更改成2102.


Resetting .......Initializing Hardware ...System integrity status: 00000610Rom image verified correctlySystem Bootstrap, Version 12.2(20130621:100325) [dgreeson-15_3_3R_S 101], DEVELOPMENT SOFTWARECopyright (c) 1994-2013  by cisco Systems, Inc.Compiled Fri 06/21/2013  6:12:33.26 by dgreesonCurrent image running: Boot ROM0Last reset cause: PowerCycleRequestCisco ISR4451/K9 platform with 4194304 Kbytes of main memoryrommon 1 > setPS1=rommon ! > MCP_STARTUP_TRACEFLAGS=00000000:00000000RET_2_RTS=EULA_ACCEPTED=TRUECRASHINFO=crashinfo_FAILEDTFTP_FILE=bzImage.SSA.binIP_ADDRESS=10.75.167.164IP_SUBNET_MASK=255.255.255.0DEFAULT_GATEWAY=10.75.167.1TFTP_SERVER=10.74.9.48THRPUT=2000000LICENSE_BOOT_LEVEL=appxk9,appxk9:esg;uck9,uck9:esg;securityk9,securityk9:esg;BSI=0RANDOM_NUM=958801295RET_2_RCALTS=1406805522?=0confreg=0X2102rommon 2 > ?alias               set and display aliases commandboot                boot up an external processbreak               set/show/clear the breakpointconfreg             configuration register utilitycontext             display the context of a loaded imagecookie              display contents of cookie PROM in hexdev                 list the device tabledir                 list files in file systemdis                 display instruction streamframe               print out a selected stack framehelp                monitor builtin command helphistory             monitor command historymeminfo             main memory informationrepeat              repeat a monitor commandreset               system resetset                 display the monitor variablesshowmon             display currently selected ROM monitorstack               produce a stack tracesync                write monitor environment to NVRAMsysret              print out info from last system returntoken               display board's unique token identifiertsec                print out info from the ethernet driverunalias             unset an aliasunset               unset a monitor variablerommon 3 > confreg 0x2102monitor: command "confreg 0x2102" not foundrommon 4 >                   " not foundmonitor: command "rommon 5 > confreg 0x2142You must reset or power cycle for new config to take effectrommon 6 > resetResetting .......Initializing Hardware ...System integrity status: 00000610Rom image verified correctlySystem Bootstrap, Version 12.2(20130621:100325) [dgreeson-15_3_3R_S 101], DEVELOPMENT SOFTWARECopyright (c) 1994-2013  by cisco Systems, Inc.Compiled Fri 06/21/2013  6:12:33.26 by dgreesonCurrent image running: Boot ROM0Last reset cause: PowerCycleRequestCisco ISR4451/K9 platform with 4194304 Kbytes of main memoryno valid BOOT image foundFinal autoboot attempt from default boot device...File size is 0x00015cf0Located bgp-pns-ovld1.config Image size 89328 inode num 12, bks cnt 22 blk size 8*512



0 0