[問題] CISCO 2600密碼回復?

看板Network作者 (熾天使)時間15年前 (2010/07/13 15:00), 編輯推噓6(6020)
留言26則, 3人參與, 最新討論串1/2 (看更多)
CISCO 2600密碼回復 請教這是Google找到的資料,如果我只要重設密碼,不更改Router的所有設定適用嗎?懇請版上高手指導?謝謝 我是以2611來做的,不過1600也適用。以下是我的做法,您可以參考一下,有實做成功喔! 一、先準備一條使用RJ45接頭的連接線,連接Router的Console Port。 二、終端機使用以下設定 9600 baud rate No parity 8 data bits 1 stop bit No flow control 三、將Router開機, System Bootstrap, Version 11.3(19)AA, EARLY DEPLOYMENT RELEASE SOFTWARE (fc1) Copyright (c) 1998 by cisco Systems, Inc. C2600 processor with 32768 Kbytes of main memory Main memory is configured to 32 bit mode with parity enabled 看到出現此訊息後,趕緊按下Ctrl+Break送出 Break,就會進到 ROMMON Mode。 四、在rommon>下輸入confreg rommon 1 > confreg 回答下列問題 Configuration Summary enabled are: load rom after netboot fails console baud: 9600 boot: image specified by the boot system commands or default to: cisco2-C2600 do you wish to change the configuration? y/n [n]: y-------回答Y enable "diagnostic mode"? y/n [n]: enable "use net in IP bcast address"? y/n [n]: disable "load rom after netboot fails"? y/n [n]: enable "use all zero broadcast"? y/n [n]: enable "break/abort has effect"? y/n [n]: enable "ignore system config info"? y/n [n]: y-------回答Y change console baud rate? y/n [n]: change the boot characteristics? y/n [n]: y-------回答Y enter to boot: 0 = ROM Monitor 1 = the boot helper image 2-15 = boot system [2]: 2-----要選2 五、rommon 2 > reset 重新啟動 Router --- System Configuration Dialog --- Router 會自動進入 Setup 選單 Would you like to enter the initial configuration dialog? [yes/no]: 按 Ctrl-C 中斷 Setup 六、Router 會進入一般模式 Router>enable 進入 Priviledged mode (不需輸入任何密碼) Router#show startup-config 顯示 NVRAM 裡面的 Startup-Config (顯示結果省略) 七、將 Startup-Config 載入 DRAM Router#configure memory 八、 2611#configure terminal----輸入此命令進入設定模式 九:將 enable 的密碼改為 cisco 2611(config)#enable secret cisco 十、將 Running-Config 寫回 NVRAM 2611#copy running-config startup-config 2611#show version Cisco Internetwork Operating System Software (中間結果省略) Configuration register is 0x2142 目前的 Configuration Register 為 0x2142 十一、 2611#configure terminal Enter configuration commands, one per line. End with CNTL/Z. 2611(config)#config-reg 0x2102 將 Configuration Register 改回來 2611(config)#^Z -----Ctrl+Z 2611# 00:01:54: %SYS-5-CONFIG_I: Configured from console by console 2611# reload 重新開機 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.130.172.1

07/13 15:30, , 1F
可...
07/13 15:30, 1F

07/13 15:32, , 2F
回覆x6xx系列的密碼大同小異 不過25的系列有稍微一點差異
07/13 15:32, 2F

07/13 15:34, , 3F
不過我記得 步驟好像沒那麼多就是了...
07/13 15:34, 3F

07/13 15:37, , 4F
不過對於第四項 我記得好像沒有問這麼多的問題耶
07/13 15:37, 4F

07/13 15:37, , 5F
針對第七項 我沒過 config memory 我是使用 copy startup
07/13 15:37, 5F

07/13 15:38, , 6F
-config running-config 這個指令 來對應第十項
07/13 15:38, 6F

07/13 15:38, , 7F
而我的第十項 會偷懶 直接用 write ... XDDD 來寫入
07/13 15:38, 7F

07/13 15:39, , 8F
通常我都會使用no 指令 來把該行弄掉後 然後改 reg 的值
07/13 15:39, 8F

07/13 15:40, , 9F
不過我的作法後面會有差一就是 我會改完reg之後 再來wr
07/13 15:40, 9F

07/13 15:40, , 10F
之後才會reload 機器
07/13 15:40, 10F

07/13 15:41, , 11F
這部份 應該是還好吧~ 這個要在機器的console端才有辦法弄
07/13 15:41, 11F

07/13 15:41, , 12F
無法使用telnet 等遠端連線的方式來弄....
07/13 15:41, 12F

07/13 15:48, , 13F
所以這方法只改密碼?不會更動到原設定是嗎>m大,謝謝你
07/13 15:48, 13F

07/13 16:09, , 14F
嗯啊 其實這個原理很簡單啊 就是在boot的過程當中
07/13 16:09, 14F

07/13 16:09, , 15F
跳過 loading startup-config 的流程而已啊
07/13 16:09, 15F

07/13 16:09, , 16F
沒載入startup-config 就是等於初始化的模式來運作啊
07/13 16:09, 16F

07/13 16:11, , 17F
然後你再從nvram當中把startup-config的組態 merge 過來
07/13 16:11, 17F

07/13 16:11, , 18F
這時候merge進來的 就是 running-config 啦
07/13 16:11, 18F

07/13 16:12, , 19F
而你只針對 merge 進來的 enable 驗證進行修改
07/13 16:12, 19F

07/13 16:12, , 20F
修改過後 存檔 並且把reg值改回 正常開機載入startup-conf
07/13 16:12, 20F

07/13 16:12, , 21F
ig 的過程~ 之後再relad router啊 我想這樣的解釋應該很清
07/13 16:12, 21F

07/13 16:13, , 22F
楚... 所以你別擔心了~~~ 不過我的做法跟你稍微有差異
07/13 16:13, 22F

07/13 16:13, , 23F
差異的地方我在上面說過了~~~ 我自己也在搞密碼回復
07/13 16:13, 23F

07/13 16:13, , 24F
這個就還好啦...至於Switch的部份 還得透過MODE搭配
07/13 16:13, 24F

07/13 16:13, , 25F
MODE按鍵搭配 Router的密碼回覆就還好啦
07/13 16:13, 25F

07/15 14:38, , 26F
文章代碼(AID): #1CF0xmtP (Network)
文章代碼(AID): #1CF0xmtP (Network)