100% found this document useful (1 vote)
2K views13 pages

Cisco IOS Disaster Recovery With TFTP Download

Uploaded by

Unic0rn11
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
2K views13 pages

Cisco IOS Disaster Recovery With TFTP Download

Uploaded by

Unic0rn11
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

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

Subnet mask of the router. IP_SUBNET_MASK= subnet_mask


Ex: SUBNET_MASK=255.255.255.0

IP address of the default gateway of the router. DEFAULT_GATEWAY= ip_address


Ex: DEFAULT_GATEWAY=192.168.1.1

IP address of the TFTP server from which the TFTP_SERVER= ip_address


software will be downloaded Ex: TFTP_SERVER=192.168.1.2

The name of the file that will be downloaded to TFTP_FILE= filename


the router Ex: TFTP_FILE=c1700-sy-mz.121-4.bin

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:

Rommon 6> tftpdnld [-r]


Here –r is optional. Entering this variable downloads and boots the new software
but does not save the IOS to the flash. You can then use the image that is in flash the
next time you enter the reload command in the Cisco IOS software CLI.

tftpdnld command will take few second to boot the router.

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.

For conformation press enter

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 2 > SUBNET_MASK=255.255.255.0

rommon 3 > i DEFAU;T LT_GATEWAY=192.168.1.1

rommon 4 > TFTP_SERVER=192.168.1.2

rommon 5 > t TFTP_FILE=c1700-sy-mz.121-4.bin

rommon 6 >

rommon 6 > TF tftpdnld -r

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

....... [TIMED OUT]

TFTP: Operation terminated.

rommon 7 >

rommon 7 >

rommon 7 > tftpdnld -r

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

....... [TIMED OUT]

TFTP: Operation terminated.

rommon 8 > tftpdnld -r

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

Receiving c1700-sy-mz.121-4.bin from


192.168.1.2 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

File reception completed.

program load complete, entry point: 0x80008000, size: 0x3ae308

Self decompressing the image :


#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
###################################################################### [OK]

Restricted Rights Legend

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.

170 West Tasman Drive

San Jose, California 95134-1706

Cisco Internetwork Operating System Software

IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2000 by cisco Systems, Inc.

Compiled Wed 30-Aug-00 09:45 by cmong

Image text-base: 0x80008088, data-base: 0x80762770

Shushant Bharmoria 5
cisco 1720 (MPC860) processor (revision 0x301) with 24576K/8192K bytes of memory.

Processor board ID JAD04010RLT (1128471038), with hardware revision 0000

M860 processor: part number 0, mask 32

Bridging software.

X.25 software, Version 3.0.0.

1 FastEthernet/IEEE 802.3 interface(s)

1 Serial(sync/async) network interface(s)

2 Low-speed serial(sync/async) network interface(s)

32K bytes of non-volatile configuration memory.

4096K bytes of processor board System flash (Read/Write)

Press RETURN to get started!

00:00:07: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to up

00:00:07: %LINK-3-UPDOWN: Interface Serial0, changed state to down

00:00:07: %LINK-3-UPDOWN: Interface Serial1, changed state to down

00:00:07: %LINK-3-UPDOWN: Interface Serial2, changed state to down

00:00:08: %SYS-5-CONFIG_I: Configured from memory by console

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2, changed state to down

00:00:10: %LINK-5-CHANGED: Interface Serial0, changed state to administratively down

00:00:10: %LINK-5-CHANGED: Interface Serial1, changed state to administratively down


00:00:10: %LINK-5-CHANGED: Interface Serial2, changed state to administratively down

00:00:10: %SYS-5-RESTART: System restarted --

Cisco Internetwork Operating System Software

IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2000 by cisco Systems, Inc.

Compiled Wed 30-Aug-00 09:45 by cmong

Router>en

Router#copy fla tftp: ?

flash: Copy to flash: file system

ftp: Copy to ftp: file system

null: Copy to null: file system

nvram: Copy to nvram: file system

rcp: Copy to rcp: file system

running-config Update (merge with) current system configuration

startup-config Copy to startup configuration

system: Copy to system: file system

tftp: Copy to tftp: file system

xmodem: Copy to xmodem: file system

ymodem: Copy to ymodem: file system

Router#copy tftp: fal lash: config t

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#int f0

Router(config-if)#ip address 192.168.1.1 255.255.255.0

Router(config-if)#no shutdown

Router(config-if)#end

Shushant Bharmoria 7
Router#copy tftp: flash:

Address or name of remote host []? 192.168.1.1 2

Source filename []? c1700-sy-mz.121-4.bin

Destination filename [c1700-sy-mz.121-4.bin]?

%Warning:There is a file already existing with this name

Do you want to over write? [confirm]y

Accessing tftp://192.168.1.2/c1700-sy-mz.121-4.bin...

Erase flash: before copying? [confirm]y

Erasing the flash filesystem will remove all files! Continue? [confirm]y

Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erased

Erase of flash: complete

Loading c1700-sy-mz.121-4.bin from 192.168.1.2 (via


FastEthernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 3859492/7718912 bytes]

Verifying checksum... OK (0xCE56)

3859492 bytes copied in 43.196 secs (89755 bytes/sec)

Router#reload

System configuration has been modified. Save? [yes/no]: y

Building configuration...

[OK]
Proceed with reload? [confirm]

00:18:08: %SYS-5-RELOAD: Reload requested

System Bootstrap, Version 12.0(3)T, RELEASE SOFTWARE (fc1)

Copyright (c) 1999 by cisco Systems, Inc.

C1700 platform with 32768 Kbytes of main memory

program load complete, entry point: 0x80008000, size: 0x3ae308

Self decompressing the image :


#############################################################################
#############################################################################
#############################################################################
#############################################################################
#############################################################################
###################################################################### [OK]

Restricted Rights Legend

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.

170 West Tasman Drive

San Jose, California 95134-1706

Shushant Bharmoria 9
Cisco Internetwork Operating System Software

IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2000 by cisco Systems, Inc.

Compiled Wed 30-Aug-00 09:45 by cmong

Image text-base: 0x80008088, data-base: 0x80762770

cisco 1720 (MPC860) processor (revision 0x301) with 24576K/8192K bytes of memory.

Processor board ID JAD04010RLT (1128471038), with hardware revision 0000

M860 processor: part number 0, mask 32

Bridging software.

X.25 software, Version 3.0.0.

1 FastEthernet/IEEE 802.3 interface(s)

1 Serial(sync/async) network interface(s)

2 Low-speed serial(sync/async) network interface(s)

32K bytes of non-volatile configuration memory.

4096K bytes of processor board System flash (Read/Write)

Press RETURN to get started!

00:00:07: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to up

00:00:07: %LINK-3-UPDOWN: Interface Serial0, changed state to down

00:00:07: %LINK-3-UPDOWN: Interface Serial1, changed state to down

00:00:07: %LINK-3-UPDOWN: Interface Serial2, changed state to down

00:00:08: %SYS-5-CONFIG_I: Configured from memory by console


00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0, changed state to up

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state to down

00:00:09: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2, changed state to down

00:00:10: %LINK-5-CHANGED: Interface Serial0, changed state to administratively down

00:00:10: %LINK-5-CHANGED: Interface Serial1, changed state to administratively down

00:00:10: %LINK-5-CHANGED: Interface Serial2, changed state to administratively down

00:00:10: %SYS-5-RESTART: System restarted --

Cisco Internetwork Operating System Software

IOS (tm) C1700 Software (C1700-SY-M), Version 12.1(4), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2000 by cisco Systems, Inc.

Compiled Wed 30-Aug-00 09:45 by cmong

Router>en

Router#show run

Building configuration...

Current configuration : 521 bytes

version 12.1

service timestamps debug uptime

service timestamps log uptime

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

ip address 192.168.1.1 255.255.255.0

speed auto

ip classless

no ip http server

line con 0

transport input none

line aux 0

line vty 0 4

login

--More—
!

no scheduler allocate

end

Router#

Shushant Bharmoria 1
3

You might also like