萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 網路安全 >  >> 路由器知識 >> 路由器設定 >> Cisco 思科路由器

Cisco 路由器恢復出廠設定完整指南:1000/1600/2500/4000 vs 1700/2600/3600/7200 系列差異

Cisco 不同系列路由器因 Flash 記憶體架構不同,恢復出廠/重灌 IOS 的流程有顯著差異。早期系列 (1000/1600/2500/4000) 必須進入 ROM Monitor 透過 TFTP/Xmodem 重寫 Flash;新系列 (1700/2600/3600/7200) 支援運行時線上升級。本文提供兩大系列完整操作手冊,含 IOS 映像恢復、升級、備份與配置寄存器操作。

系列一:1000/1600/2500/4000 (Run-from-Flash 架構)

IOS 映像恢復 (Flash 受損/遺失)

  1. Console 連線,9600-8-N-1。
  2. 通電 30 秒內按 Ctrl+Break 進入 > (或 rommon>)。
  3. o /r 0x2101 設定從 ROM 啟動。
  4. i 重啟,進入 router(boot)>。
  5. TFTP 下載 IOS 至 Flash:
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
! 等待寫入完成
  1. 恢復寄存器並重啟:
router(boot)# conf t
router(boot)(config)# config-register 0x2102
router(boot)(config)# end
router(boot)# write memory
router(boot)# reload

IOS 線上升級 (正常運行中)

  1. 備份關鍵檔案:copy flash tftp、copy startup-config tftp。
  2. 修改寄存器進入 ROM 模式:config-register 0x2101 → reload。
  3. 在 router(boot)> 下 copy tftp flash 寫入新 IOS。
  4. 恢復寄存器 0x2102 → reload。

系列二:1700/2600/3600/7200 (Run-from-RAM 架構,支援線上重寫 Flash)

IOS 映像恢復 (災難恢復模式)

  1. Console 連線,通電 30 秒內 Ctrl+Break 進入 rommon 1>。
  2. Xmodem 傳輸 (僅限 Console 速率 9600/115200,耗時 1~2 小時):
rommon 1> xmodem c3640-ik9o3s-mz.124-25d.bin
! 終端軟體選 Xmodem 傳送檔案
  1. 或 TFTP 引導 (需網路連通) :rommon 1> b c3640-ik9o3s-mz.124-25d.bin 192.168.18.168。
  2. 自動解壓重啟,進入 IOS。
  3. confreg 0x2102 → reset。

IOS 線上升級 (推薦)

! 直接在 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>
配置寄存器預設0x21020x2102
copyright © 萬盛學電腦網 all rights reserved