Guest

Cisco Compatible Micro Router Series

Compatible Systems Tech Notes: Using the TFTP Command

   Document ID: 17674


Introduction

TFTP from a workstation may be used to download Operating Systems into a device, or upload/download a configuration to a device.

Note: TFTP will NOT work through NAT.

Prerequisites

Requirements

There are no specific requirements for this document.

Components Used

This document is not restricted to specific software and hardware versions.

Conventions

Refer to Cisco Technical Tips Conventions for information on document conventions.

Using the TFTP Command

TFTP from a workstation may be used to download Operating Systems into a device, or upload/download a configuration to a device.

Note: TFTP will NOT work through NAT.

Affected Products and Versions

Affected Products

900i 2200R 3000E IntraPort 1
1200i 2220R 4000S IntraPort 2
1220i 2250R VSR-2 IntraPort 2+
1250i 2270R VSR-8 IntraPort Enterprise-2
1270i 3500R   IntraPort Enterprise-8
2600i 3800R   IntraPort Carrier-2
2900i     IntraPort Carrier-8

Affected Versions

All Version

More Information

FTP (Trivial File Transfer Protocol) is not part of the Win95/98 operating system, but it can be found on NT and UNIX platforms.

In order to use TFTP with a Compatible device, you must first telnet into the device to let it know that TFTP is allowed from a specific workstation. The syntax of the command is:

tftp enable [<timeout>] [<TFTP client IP Address>] 

If you telnet in from the same workstation you plan on using for the TFTP, then you do not need the IP address option. In that case an example command would be:

tftp enable 10000

Leaving a window of 10,000 seconds to begin and complete the upload/download.

Operating System

The syntax on a Windows NT workstation used to download code into a compatible device is:

tftp -i 198.41.12.1 put m12045.dld

Where "-i" sets it to binary mode, and the m12045.dld is the code you wish to put into the device (in this case v4.5 code for an MR1200i) at IP address 198.41.12.1

The UNIX command is similar:

tftp mode binary connect 198.41.12.1 put m12045.dld  

You can always check the help file of the workstation to work out your workstation's particular TFTP syntax.

Configuration Upload and Download

The transfer of configuration files is similar, but does NOT require the binary mode.

Using an NT workstation to "get" a configuration:

tftp 198.41.12.1 get router.txt

This command will get the configuration of router 198.41.12.1 and save the file as router.txt.

Using an NT workstation to "put" a configuration:

tftp 198.41.12.1 put router.txt MR1200i.cfg

This command will put configuration router.txt into an MR1200i device. The "MR1200i.cfg" name is the ONLY configuration name the MR1200i will accept for it's configuration.

You can determine what the correct name for your device is by trying a test download like this example:

C:\Compatible>tftp 198.41.9.61 put file.txt MR1200i.cfg 
 	Error on server : IntraPort2: incorrect download name.

In this case the error tells us what the proper ".cfg" filename should be, "Intraport2.cfg". So this device turned out to be an Intraport2 and we'd rewrite the tftp command in order to make it work:

tftp 198.41.9.61 put file.txt Intraport2.cfg 

Note: If the transfer is successful, the workstation will respond that it has been successful and some statistics on the download. If the transfer were unsuccessful, it will respond with a timeout. In EITHER case, the Compatible device will restart itself either using the successful download, or using it's old setup if the download failed. Downloads may take up to 120 seconds and still be successful. Once the tftp command has been executed, there will not be a new command prompt on the workstation until the command has either been a success or failure.

Cisco Support Community - Featured Conversations

Related Information


Updated: Oct 04, 2005Document ID: 17674