2012年2月28日

使用Xmodem恢復IOS

會使用到Console線接上設備來恢復IOS的話,通常是設備中Flash裡的IOS 映像檔己經被刪除或損壞,沒有辦法再使用TFTP的方式來重新上傳IOS檔,本次苦主為Cisco WS-C3550-48-SMI Switch一台,機台裡的IOS被刪掉了,Ctrl+Break連rommon都進不去!!
 















恢復IOS步驟如下:
一、利用Copy指令,把IOS檔從Console傳到flash裡

switch: copy xmodem: flash:c3550-ipservicesk9-mz.122-25.seb4.bin
出現ccc等待提示後,選好要上傳的IOS檔後,利用Console傳送,要等上一段時間
(這次等了快一個半鐘頭才傳完)
Begin the Xmodem or Xmodem-1K transfer now...
CCC....................................................................................................................................
File "xmodem:" successfully copied to "flash:c3550-ipservicesk9-mz.122-25.seb4.bin"

二、利用set指令,設定BOOT開機讀取IOS的路徑
switch: set BOOT flash:c3550-ipservicesk9-mz.122-25.seb4.bin
設定好路徑後,再下boot來測試IOS檔是否可以正常Run
switch: boot
Loading "flash:c3550-ipservicesk9-mz.122-25.seb4.bin"...########################################################
##########################################################################
File "flash:c3550-ipservicesk9-mz.122-25.seb4.bin" uncompressed and installed, entry point: 0x3000
executing...













三、確認可以成功開機後,可再重新設定相關的config存檔後,重開設備即可


救援模式下的一些相關指令
switch: ?
           ? -- Present list of available commands
        boot -- Load and boot an executable image
         cat -- Concatenate (type) file(s)
        copy -- Copy a file
      delete -- Delete file(s)
         dir -- List files in directories
  flash_init -- Initialize flash filesystem(s)
      format -- Format a filesystem
        fsck -- Check filesystem consistency
        help -- Present list of available commands
 load_helper -- Load and initialize a helper image
      memory -- Present memory heap utilization information
       mkdir -- Create dir(s)
        more -- Concatenate (display) file(s)
      rename -- Rename a file
       reset -- Reset the system
       rmdir -- Delete empty dir(s)
         set -- Set or display environment variables
   set_param -- Set system parameters in flash
       sleep -- Pause (sleep) for a specified number of seconds
        trap -- Cause a software breakpoint to occur
 -- MORE --
        type -- Concatenate (type) file(s)
       unset -- Unset one or more environment variables
     version -- Display boot loader version

0 回應:

Copyright © 2009 New Life in Taipei All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.