2011年11月29日 星期二

Cisco當設備IOS損毀時的處理方式


當設備IOS損毀時的處理方式
當無法讀取在flash 中的檔案時,系統會在Rom Monotor Mode 下。
首先可以查看在Rom Monotor Mode 下有什麼指令可以用。
rommon 1 > boot                boot up an external process
confreg             configuration register utility
dir                 list files in file system
help                monitor builtin command help
reset               system reset
set                 display the monitor variables
tftpdnld            tftp image download
unset               unset a monitor variable
這裡會用到的指令為tftpdnld,但是在使用前必須先設定系統參數,
rommon 2 > DEFAULT_GATEWAY=192.168.1.254 rommon 3 > IP_ADDRESS=192.168.1.254 rommon 4 > IP_SUBNET_MASK=255.255.255.0 rommon 5 > TFTP_FILE=c1841-ipbase-mz.123-14.T7.bin rommon 6 > TFTP_SERVER=192.168.1.1
設定完全系統參數後再執行tftpdnld指令
rommon 7 > tftpdnld
          IP_ADDRESS: 192.168.1.254
      IP_SUBNET_MASK: 255.255.255.0
     DEFAULT_GATEWAY: 192.168.1.254
         TFTP_SERVER: 192.168.1.1
           TFTP_FILE: c1841-ipbase-mz.123-14.T7.bin
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will be lost!
Do you wish to continue? y/n:  [n]:  y

沒有留言: