NOTE: This faq is relevant firmware version 2.5 and earlier. TFTP server setup in version 2.8 and later is automatic Refer faq 346. for more information and advanced TFTP features.

To set up the TFTP server if the USB drive has not been previously used (first time setup):
- Format the USB flash drive to fat32 (if not already done). You can format the flash drive in your Windows PC or you can format the drive from the IM4200 from the command line (if you know the device name for the USB flash drive):
mkdosfs -F 32 -I /dev/sda1 - Make the directory tftpboot on the flash drive (if it does not already exist, the IM4200 will make it if its not there)
- Copy firmware files into the tftpboot directory.
- Insert flash drive into IM4200 USB slot.
Then you will need to turn on the TFTP server via the Management Console -> Services -> TFTP Server
The IM4200 is now set up to serve new firmware using the IM4200's address as the TFTP server (no username/password required).
You can add new files to the TFTP server using WinSCP or OpenSSH scp. Using SSH Secure Copy, copy the new firmware from your PC to the IM4200's TFTP base directory /tmp/usbdisk/tftpboot/
e.g. # scp firmware.bin 192.168.0.1:/tmp/usbdisk/tftpboot
Note: Only files under the tftpboot/ sub-directory will be used by the TFTP server.
Using the tftp server to store Cisco configuration files
So you can use the IM4200 to store local copies of config files for network routers, or other devices on the USB flash e.g a network manager might want to locally back up a device's current configuration file to the IM4200 tftp server before changing its contents (thereby allowing him/her to later restore the original configuration file from the server).
By way of example you can simply copy Cisco configuration files from a router to a file server using TFTP. To store configuration information on a TFTP network server, you use the This is a step-by-step approach to copy a configuration from a router to a TFTP server, and back to another router. Before you proceed with this method, make sure you have a TFTP server on the network to which you have IP connectivity.
1. At the Router> prompt, issue the enable command, and provide the required password when prompted.
The prompt changes to Router#, which indicates that the router is now in privileged mode. 2.
Copy the running configuration file to the TFTP server:
CE_2#copy running-config tftp:
Address or name of remote host []? 64.104.207.171
Destination filename [ce_2-confg]? backup_cfg_for_my_router
!!
1030 bytes copied in 2.489 secs (395 bytes/sec)
CE_2#
3. Open the configuration file with a text editor. Search for and remove any line that starts with "AAA".
Note: This step is to remove any security commands that can lock you out of the router.
4. Copy the configuration file from the TFTP server to a new router in privileged (enable) mode which has a basic configuration.
Router#copy tftp: running-config
Address or name of remote host []? 64.104.207.171
Source filename []? backup_cfg_for_my_router
Destination filename [running-config]?
Accessing tftp://10.66.64.10/backup_cfg_for_my_router...
Loading backup_cfg_for_router from 64.104.207.171 (via FastEthernet0/0): !
[OK - 1030 bytes]
1030 bytes copied in 9.612 secs (107 bytes/sec)
CE_2#
For more details refer Copying Configuration Files
Comments
0 comments
Article is closed for comments.