個人學習筆記吱瘩,若有侵權道伟,請告知!
- 配置寄存器值:簡單的理解為對路由器開機的配置
- 0x2142 //開機時不加載配置文件
- 0x2102 //開機時加載配置文件
備份IOS
- 需要TFTP服務器,同時確保能夠ping通TFTP服務器的地址
Router#copy startup-config tftp: //將startup-config備份到tftp服務器上
Router#copy flash: tftp: //將IOS備份到tftp服務器上
Source filename []? c2500-is-l.122-15.T14.bin //要備份的IOS名字
Address or name of remote host []? 172.16.1.100 //服務器的地址
Destination filename [c2500-is-l.122-15.T14.bin]? //備份到tftp服務器上的名字(直接回車)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16423684 bytes copied in 278.752 secs (58919 bytes/sec)
Router#
升級IOS
- 準備工作
- 備份設備配置
- 備份設備IOS
- 需要TFTP服務器蜜徽,同時確保能夠ping通TFTP服務器的地址
Router#copy tftp flash 從TFTP服務器上將新的IOS拷貝到Router的flash中
Address or name of remote host [255.255.255.255]? 172.16.1.100 //TFTP服務器的地址
Source filename []?c2800nm-advsecurityk9-mz.124-12.bin //新IOS文件名
Destination filename [c2800nm-advsecurityk9-mz.124-12.bin]? //拷貝到flash后的文件名(直接回車)
%Warning: There is a file already existing with this name
Do you want to over write? [confirm][enter]
Accessing tftp://172.16.1.100/c2800nm-advsecurityk9-mz.124-12.bin...
Loading c2800nm-advsecurityk9-mz.124-12.bin from 172.16.1.100 (via Ethernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21710744 bytes copied in 82.880 secs (261954 bytes/sec)
Router#reload //重啟設備
密碼恢復
- 只能通過console口破解
- 路由器默認的寄存器值是0x2102 (啟動路由器祝懂,加載IOS,并讀取NVRAM的配置文件)
重啟計算機拘鞋,在開機前30s 按住ctrl+break 發(fā)送一個break信號
rommon 1> //路由器將進入ROM監(jiān)控模式
rommon 1>confreg 0x2142 //不讀取NVRAM 中的配置
rommon 2>reset 或 i //重啟路由器砚蓬,繞過加載NVRAM 里面的配置
Router#show version
Configuration register is 0x2142 //查看到以修改為0x2142
Router#copy startup-config running-config //調用NVRAM的配置到RAM中
Router#conf t
Router(config)#no enable secret //刪除原密碼
Router(config)#no enable password //刪除原密碼
Router(config)#enable password xxx //建立新密碼
Router(config)#config-register 0x2102 //把寄存器值改回原來數(shù)值
Router#write //將RAM中的配置保存到NVRAM中
Router#reload //重啟路由器