Sei sulla pagina 1di 2

backup and restore the cisco IOS from a TFTP server materials 1.cisco 1700 series router 2.

a pc that will serve as tftp server 3.assign an ip address for that pc/tftp server static 4.console cable attached to the routers console int 5.568a cable attached to f0/0 or any fa interface 6.Lets start with the backup process first go to priviledge mode then type show flash 7.when the cli when it gives this: System flash directory: File Length Name/status 4 33591768 c1841-advipservicesk9-mz.124-15.T1.bin [33591768 bytes used, 30424616 available, 64016384 total] 63488K bytes of processor board System flash (Read/Write) 8.first copy the word c1841-advipservicesk9-mz.124-15.T1.bin and save it to notepad. note always remember that IOS images uses the extension filename .bin 9.backup your IOS by issuing the command on the priviledge mode: zzzzz#copy flash tftp Source filename []? c1841-advipservicesk9-mz.124-15.T1.bin (press enter) Address or name of remote host []? 192.168.1.5 (press enter) Destination filename [c1841-advipservicesk9-mz.124-15.T1.bin]? (press enter) Writing c1841-advipservicesk9-mz.124-15.T1.bin....!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! [OK - 33591768 bytes] 33591768 bytes copied in 21.219 secs (1583000 bytes/sec) 10.so you safely backedup your IOS in your tftp server 11.now we will delete the existing IOS in your router Router#delete flash Delete filename []?c1841-advipservicesk9-mz.124-15.T1.bin Delete flash:/c1841-advipservicesk9-mz.124-15.T1.bin? [confirm] (type enter) 12.now verify if you deleted the said file by typing: zzzzz#show flash 13.if this will be the result of the command: System flash directory: File Length Name/status [0 bytes used, 64016384 available, 64016384 total] 63488K bytes of processor board System flash (Read/Write) you successfully deleted it. 14.execute the command reload to reset the router 15.then since you deleted the IOS you now have a new problem how will you restore the IOS? 16.notice that upon reset the router prompted us to rommon>/ROMmode/test system mode/ROM mode or bootmode 17.now to restore this type the following entries below:

take note that the questions are CASE SENSITIVE your answers are not CASE SENSITIVE IP_ADDRESS= 192.168.1.7 IP_SUBNET_MASK= 255.255.255.0 DEFAULT_GATEWAY= 192.168.1.7 TFTP_SERVER= 192.168.1.5 TFTP_FILE= c1841-advipservicesk9-mz.124-15.T1.bin tftpdnld IP_ADDRESS: 192.168.1.7 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 192.168.1.7 TFTP_SERVER: 192.168.1.5 TFTP_FILE: c1841-advipservicesk9-mz.124-15.T1.bin TFTP_MACADDR: 00:13:80:7b:20:1e TFTP_VERBOSE: Progress TFTP_RETRY_COUNT: 18 TFTP_TIMEOUT: 7200 TFTP_CHECKSUM: Yes FE_PORT: 0 FE_SPEED_MODE: Auto Detect . 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 ... Receiving c1841-advipservicesk9-mz.124-13a.bin from 192.168.1.10 !!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .... File reception completed. Validating checksum. Copying file c1841-advipservicesk9-mz.124-13a.bin to flash. program load complete, entry point: 0x8000f000, size: 0xc100 . Initializing ATA monitor library....... . Format: Drive communication & 1st Sector Write OK... Writing Monlib sectors. ................................................................................ .................. Monlib write complete Format: All system sectors written. OK... Format: Operation completed successfully. Format of flash: complete program load complete, entry point: 0x8000f000, size: 0xc100 Initializing ATA monitor library....... rommon 17 > Once that s done, just issue a reset command and it should boot into IOS.

Potrebbero piacerti anche