遺忘 Cisco 路由器啟用密碼 (enable secret) 時,標準復原流程為:進入 ROMMON → 修改配置暫存器略過啟動配置 (0x2142) → 重啟 → 進入特權模式合併配置 → 修改密碼 → 恢復暫存器 (0x2102) → 存檔重啟。本文分別針對 2500 系列 (傳統) 與 2600 系列 (新式 ROMMON) 提供詳細步驟。
rommon 1> 或 >)。o/r 0x2142 (或先用 e/s 2000002 確認原值並記下)。o/r 0x2142。i 或 reset。Router>,輸入 enable 進入 Router# (無需密碼)。configure memory (舊 IOS) 或 copy startup-config running-config。configure terminal → enable secret NewStrongPass → end。configure terminal → config-register 0x2102 (或原記錄值) → end。write memory (或 copy running-config startup-config)。reload,新密碼生效。rommon 1>),輸入 confreg 進入互動式暫存器設定:do you wish to change the configuration? y/n [n]: yn,直到 enable "ignore system configuration information"? y/n [n]: y 輸入 y。reset。Router> → enable → configure memory 合併配置。config-register 0x2102、write memory、reload,同 2500 步驟 6~9。confreg,若不支援再用 o/r。configure memory 合併舊配置,否則介面關閉、路由遺失導致無法遠端管理。enable secret (MD5/SHA256),勿用舊式 enable password (可逆加密)。