Cisco 不同系列路由器因 Flash 記憶體架構不同,恢復出廠/重灌 IOS 的流程有顯著差異。早期系列 (1000/1600/2500/4000) 必須進入 ROM Monitor 透過 TFTP/Xmodem 重寫 Flash;新系列 (1700/2600/3600/7200) 支援運行時線上升級。本文提供兩大系列完整操作手冊,含 IOS 映像恢復、升級、備份與配置寄存器操作。
> (或 rommon>)。o /r 0x2101 設定從 ROM 啟動。i 重啟,進入 router(boot)>。router(boot)> enable
router(boot)# copy tftp flash
Address or name of remote host? 192.168.18.168
Source file name? c2500-js-l.122-15.T.bin
Destination file name? [same]
Erase flash before copying? [confirm] y
! 等待寫入完成
router(boot)# conf t
router(boot)(config)# config-register 0x2102
router(boot)(config)# end
router(boot)# write memory
router(boot)# reload
copy flash tftp、copy startup-config tftp。config-register 0x2101 → reload。router(boot)> 下 copy tftp flash 寫入新 IOS。reload。rommon 1>。rommon 1> xmodem c3640-ik9o3s-mz.124-25d.bin
! 終端軟體選 Xmodem 傳送檔案
rommon 1> b c3640-ik9o3s-mz.124-25d.bin 192.168.18.168。confreg 0x2102 → reset。! 直接在 IOS 下執行
copy tftp flash
! 輸入 TFTP Server IP、Source/Dest 檔名
reload
或保守離線升級:config-register 0x0 → reload 進入 rommon → b <image> <tftp_ip> → confreg 0x2102 → reset。
! 備份至 TFTP
copy startup-config tftp
copy running-config tftp
copy flash tftp
! 從 TFTP 恢復配置
copy tftp startup-config
copy tftp running-config
| 項目 | 1000/2500/4000 系列 | 1700/2600/3600/7200 系列 |
|---|---|---|
| Flash 寫入限制 | 僅 ROM Monitor 模式可寫 | 運行時可線上重寫 |
| 災難恢復傳輸 | TFTP (需乙太網) | Xmodem (Console) / TFTP |
| Bootloader 提示符 | > / router(boot)> | rommon 1> |
| 配置寄存器預設 | 0x2102 | 0x2102 |