Hi, this is the commands to re-image a router.
You need to set up a router with a cross-over cable direct to the PC and a console cable, then configure the PC with the following IP address on it NIC.
Ip address:
10.1.1.1
Subnet mask:
255.255.255.0
Default gateway: 10.1.1.2
Set the router’s fast ethernet port up as below:
Copyright (c) 1986-2005 by cisco Systems, Inc. Compiled Tue 16-Aug-05 18:10 by pwade Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int fa0/0 Router(config-if)#ip add 10.1.1.2 255.255.255.0 Router(config-if)#no shut Router(config-if)#^Z Router# Router#dir flash: Directory of flash:/
1 -rw-
8231860
<no date> c2600-ik2s-mz.121-27b.bin
16777216 bytes total (8545292 bytes free) Router#copy flash:c2600-ik2s-mz.121-27b.bin tftp: Address or name of remote host []? 10.1.1.1
Destination filename [c2600-ik2s-mz.121-27b.bin]? (press enter key) .!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ---- loads more of these lines----------------------------------------------!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!! 8231860 bytes copied in 39.592 secs (211073 bytes/sec) Router#
On the faulty router, same cabling, (commands are case sensitive, have to be upper case):
rommon 4 > IP_ADDRESS=10.1.1.2 rommon 5 > IP_SUBNET_MASK=255.255.255.0 rommon 6 > DEFAULT_GATEWAY=10.1.1.1 rommon 7 > TFTP_SERVER=10.1.1.1 rommon 8 > TFTP_FILE=c2600-ik2s-mz.121-27b.bin rommon 9 > tftpdnld
IP_ADDRESS: 10.1.1.2 IP_SUBNET_MASK: 255.255.255.0 DEFAULT_GATEWAY: 10.1.1.1 TFTP_SERVER: 10.1.1.1 TFTP_FILE: c2600-ik2s-mz.121-27b.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
Once it has loaded type:
Reset it should now boot correctly