教學實驗記錄:透過 Console 線進入 Rommon 模式,修改配置暫存器為 0x2142 略過 NVRAM 啟動配置,進入無密碼特權模式,合併配置後重設特權與 Console 密碼,最後恢復暫存器 0x2102 並存檔驗證。
單台路由器 + Console 線 + 終端機電腦。

rommon 1 >。
confreg 0x2142(預設 0x2102),使路由器忽略 startup-config 直接進入 Setup/CLI。
i 引導啟動,詢問初始配置對話回答 no。Router>,enable 直入特權模式(無密碼)。copy startup-config running-config(顯示複製位元組數)。show running-config 找到 enable password、line con 0 password。configure terminalenable password 123 (或 enable secret 123 推薦加密)line console 0password adminloginconfig-register 0x2102endwrite memory(或 copy running-config startup-config)startup → running 為合併載入;running → startup 為存檔。enable password 明文(不安全),enable secret MD5/SHA256 加密(推薦)。