cisco路由器和交換機的密碼問題

cisco路由器和交換機的密碼問題

問:
今天拿起實驗室很久都沒有使用的路由器和交換機一試,發現有密碼,由於以前實驗室的老師已經不在這裏了,原始密碼找不到了。

請教大家有什麼高招可以重新設置密碼阿?

這兩臺機子分別是 :cisco2600路由器 cisco3550交換機

答:

Cisco 3550 密碼恢復一、將一臺終端或裝有超級終端軟件的PC 接到交換機的console 口上。終端參數設置如下:速率:9600bps 校驗位:無數據位:8 停止位:1 數據流控制:無二、撥掉電源,按住前面板的mode 鍵不放,插上電源,等3-5 秒後鬆開mode 鍵。你會看到如下提示: The system has been interrupted prior to initializing the flash file system. The following commands will initialize the flash file system, and finish loading the operating system software: flash_init load_helper boot 三、輸入flash_init 四、輸入load _helper 五、輸入dir flash: 注意,不要少了flash 後面的冒號,屏幕出現如下提示。 Directory of flash: 2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-c3h2s-mz-12.1-WC5.bin 4 drwx 3776 Mar 01 1993 01:23:24 html 66 -rwx 130 Jan 01 1970 00:01:19 env_vars 68 -rwx 1296 Mar 01 1993 06:55:51 config.text 1728000 bytes total (456704 bytes free) 六、輸入rename flash:config.text flash:config.old 七、輸入boot 引導系統。八、當出現如下提示時,輸入N: Continue with the configuration dialog? [yes/no] : N 九、用enable 命令進入特權可執行模式,並將文件config.old 改回config.text,命令如下: rename flash:config.old flash:config.text 十、將原配置裝入內存,命令如下: 3550# copy flash:config.text system:running-config /*保留原來配置十一、修改密碼: 355#conf t 3550(config)#no enable secret /*使下一步配置的新密碼起作用 3550(config)#enable secret ultra

3550(config)#exit 十二、telnet 到交換機上,驗證密碼是否修改成功十三、將配置寫入nvram 3550#write

路由器2600的密碼恢復流程一、將一臺終端或裝有超級終端軟件的PC 接到設備的console 口上。終端參數設置如下:速率:9600bps 校驗位:無數據位:8 停止位:1 數據流控制:無二、重啓設備,在啓動的60 秒內按下中斷鍵,使設備進入ROMMON 狀態,中斷鍵的定義請參見附錄B。三、在Rommon 中輸入confreg 0x2142 命令四、輸入reset 命令重新啓動路由器五、輸入enable 進入特權可執行模式 Router# 六、輸入configure memory,調入原配置文件,並進入配置模式, Router#configure memory Router(config)# 七、確認當前配置。命令如下: Router#show running-config 八、配置新口令: Router#conf igure terminal Router(config)#no enable secret Router(config)#enable secret xxxxxx /*設置新的密碼九、測試新口令十、修改config-register,命令如下: Router(config)#config-register 0x2102 十三、保存配置、重新啓動 Router(config)#exit Router#write Router#reload

參考下吧!!
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章