Cisco IOS Disaster Recovery With TFTP Download
Cisco IOS Disaster Recovery With TFTP Download
TFTP server can be used to download the fresh copy of IOS to the router (if there is
no ISO in the router flash or it is faulty). Before trying to copy IOS from TFTP server
to flash, we should make sure some of the following things
1. Router is connected to the remote host (on which TFTP server is installed),
or it is connected to the server.
2. Hyper-Terminal is running on the remote host.
3. TFTP server is installed on the remote host computer x(for the purpose of
the study we have used SolarWind TFTP, version 12.0 server in our work).
And it should be activated. To activate the TFTP server we can follow the
following steps
Go to the file menu on the top left corner of the TFTP window.
Select configure option from the pop down menu.
A dialog box will appear on the screen. Now click on Start button and click
OK button.
4. Now we can turn into the Hyper-Terminal on the remote host, which will
show the router in the ROM Monitor mode.
i.e. rommon 1>
Shushant Bharmoria 1
When the Hyper-Terminal shows the rommon prompt. It means the router is ready
to take disaster recovery commands. Following commands should be used to assign
the values to the router
Variable Command
IP address of the router IP_ADDRESS= ip_address
Ex: IP_ADDRESS= 192.168.1.1
After following all these steps its time to enter type the tftpdnld command that will
download and boot the router with the help of newly downloaded IOS. The syntax
for the tftpdnld command is as below:
After sometime router will go to the user execution mode (limited to basic
monitoring commands).
After this assign the IP address to the FastEthernet port of the router. And don’t
forget to use the no shutdown command.
Copy the IOS file from the tftp server to flash by using the copy command. Example
Copy tftp: flash:
Copy command will prompt you to enter the IP address of the remote host and it
will prompt to enter the user to enter the source and destination filename.
After supplying all the information router will generate a message that using this
command will erase all the previous files from the flash.
This command will erase all the files and then it will copy the fresh copy of IOS into
flash.
Shushant Bharmoria 3
The actual process on the router (Capture):
IPA _ADDRESS=192.168.1.1
rommon 6 >
IP_ADDRESS: 192.168.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.1
TFTP_SERVER: 192.168.1.2
TFTP_FILE: c1700-sy-mz.121-4.bin
rommon 7 >
rommon 7 >
IP_ADDRESS: 192.168.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.1
TFTP_SERVER: 192.168.1.2
TFTP_FILE: c1700-sy-mz.121-4.bin
IP_ADDRESS: 192.168.1.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.1
TFTP_SERVER: 192.168.1.2
TFTP_FILE: c1700-sy-mz.121-4.bin
IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)
Shushant Bharmoria 5
cisco 1720 (MPC860) processor (revision 0x301) with 24576K/8192K bytes of memory.
Bridging software.
IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)
Router>en
Router(config)#int f0
Router(config-if)#no shutdown
Router(config-if)#end
Shushant Bharmoria 7
Router#copy tftp: flash:
Accessing tftp://192.168.1.2/c1700-sy-mz.121-4.bin...
Erasing the flash filesystem will remove all files! Continue? [confirm]y
Router#reload
Building configuration...
[OK]
Proceed with reload? [confirm]
Shushant Bharmoria 9
Cisco Internetwork Operating System Software
IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)
cisco 1720 (MPC860) processor (revision 0x301) with 24576K/8192K bytes of memory.
Bridging software.
IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)
Router>en
Router#show run
Building configuration...
version 12.1
no service password-encryption
hostname Router
!
Shushant Bharmoria 1
1
memory-size iomem 25
ip subnet-zero
interface Serial0
no ip address
--More-- shutdown
interface Serial1
no ip address
shutdown
interface Serial2
no ip address
shutdown
interface FastEthernet0
speed auto
ip classless
no ip http server
line con 0
line aux 0
line vty 0 4
login
--More—
!
no scheduler allocate
end
Router#
Shushant Bharmoria 1
3