How to Use Cisco Router as a TFTP Server

You can use Cisco Router as a TFTP server and copy IOS or any other files from one Router to another Router. Enable TFTP server on one primary Cisco Router and copy files from TFTP enabled Router to any other secondary Cisco Router. Find below step by step configuration.

Enable/Activate TFTP Server on Primary Router

1. Find all files in the Flash on a Router with ‘show flash’ command. Lets assume Cisco Router A is the Primary Router and I am enabling as a TFTP server.

Cisco-Router-A#sh flash

-#- –length– —–date/time—— path
1     14713912 Nov 14 2008 20:41:08 +00:00 c1841-ipbase-mz.124-3i.bin
2         2746 Nov 14 2008 20:56:56 +00:00 sdmconfig-18xx.cfg
3       931840 Nov 14 2008 20:57:16 +00:00 es.tar
4      1505280 Nov 14 2008 20:57:40 +00:00 common.tar
5         1038 Nov 14 2008 20:58:02 +00:00 home.shtml
6       112640 Nov 14 2008 20:58:22 +00:00 home.tar

14790656 bytes available (17281024 bytes used)

2. Enter config mode and use the ‘tftp-server’ command to specify which files you want to host on the local TFTP Server.

Cisco-Router-A# config t
Enter configuration commands, one per line.  End with CNTL/Z.
Cisco-Router-A(config)#tftp-server flash:c1841-ipbase-mz.124-3i.bin

3. Now you can verify the tftp-server statements in the running configuration with below command.
Cisco-Router-A#sh run | i tftp
tftp-server flash:c1841-ipbase-mz.124-3i.bin

Copy files from TFTP Server Enabled Router (Router A)

4.Check a connectivity from Router B to Router A.


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to timeout is 2 seconds:
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8

5. Now go to the second Router and use your standard ‘copy tftp flash’ statement to copy the code into local flash.

Cisco-Router-B# copy tftp flash
Address or name of remote host []? <Reachable IP on the other router>
Source filename []?c1841-ipbase-mz.124-3i.bin
Destination filename [c1841-ipbase-mz.124-3i.bin]?
Accessing tftp:// c1841-ipbase-mz.124-3i.bin…
Loading c1841-ipbase-mz.124-3i.bin from !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK – 14713912 bytes]

That’s it!  In same way you can copy any file from one Router to another Router with ‘tftp-server’ command and don’t forget to give “no tftp-server” command once completed.


Filed Under: Cisco General


About the Author:

RSSComments (0)

Trackback URL

Leave a Reply

If you want a picture to show with your comment, go get a Gravatar.