Network Basics: TFTP Installation and Use
- Specify a directory to share or serve up via TFTP with the main screen showing you server activity.
- Download your IOS image files from Cisco.
- Place them in the C:TFTP-Root directory (or whatever directory you have set as your root TFTP directory).
You can copy the config from the first switch to the FTP server and then from the FTP server to the second switch. Be sure the second switch isn't connected to the network, but instead with a direct connection to the FTP server. Otherwise, you will have network problems with both switches having the same IP address.
Copying From One Router to Another
- Check the image size on Router1 with the show flash command.
- Check the image size on Router2 with the show flash command to verify if enough space is available on Router2 for the system image file to be copied.
- Configure Router1 as the TFTP server using the configure terminal command.
Introduction. There are many freeware Trivial File Transfer Protocol (TFTP) servers on the Internet which are able to perform maintenance activities on Cisco products, such as upgrades to Cisco IOS® software on Cisco routers. For more information on this, refer to Cisco TFTP Server.
Install a TFTP Server
- Download a TFTP server. Refer to TFTP Server Selection and Use for more information.
- Configure the TFTP application to operate as a TFTP server instead of a TFTP client.
- Specify the outbound file directory. This is the directory in which the Cisco IOS software images are stored.
To copy a system image to an FTP network server, complete the tasks in this section:
- SUMMARY STEPS.
- enable.
- configure terminal.
- ip ftp username username.
- ip ftp password password.
- end.
- show flash-filesystem :
- copy flash-filesystem : filename ftp: [[[//[username [:password ]@]location ]/directory ]/filename ]
Connecting to server is realized by the menu command Server->Connect. After executing of this command the dialog window (Picture 2) is displayed. It's necessary to select connection type (local or remote server) in the connection window and set authentication parameters.
Installing TFTP Client
- Go to the Start Menu and open up the Control Panel.
- Navigate to Programs and features and then on the left-hand side, click 'Turn Windows features on or off'.
- Scroll down and locate TFTP Client. Check the box. Installing TFTP Client.
- Click OK to install the client.
- Wait for it to complete.
To install the TFTP server on the Linux distribution that supports yum, such as Fedora and CentOS, run the following command:
- yum -y install tftp-server.
- apt-get install tftpd-hpa.
- /etc/init.d/xinetd restart.
- tftp -c get ls.
copy tftp startup-config tftp-ip-addr filename - Use this command to download a copy of the startup configuration file from a TFTP server to a Layer 2 Switch or Layer 3 Switch.
2) Run the Solarwinds Trivial File Transfer Protocol (TFTP) by clicking it from Start > Programs. Click menu File > Configure. 3) Start TFTP server by clicking the "Start" button and make sure the service is started by checking the status. Also verify the default root directory location of the TFTP Server.
Use an FTP Server to Backup and Restore a Configuration
- At the Router> prompt, issue the enable command, and provide the required password when prompted.
- Configure the FTP username and password.
- Copy the configuration to the FTP server.
- Open the configuration file with a text editor.
Copying a Cisco IOS Image to TFTP Server
- Step 1 . Select a Cisco IOS image file that meets the requirements in terms of platform, features and software. Download the file from cisco.com and transfer it to the TFTP server.
- Step 2 . Verify connectivity to the TFTP server. Ping the TFTP server from the router.
FTP will be accessed using the IP address of the Server where you have installed the 3CDaemon tool. You can test your FTP as follow. Open Windows explorer and enter ftp://IP_address (Here ftp://192.168.0.5). Provide the Profile Name and the password to access your FTP site.
Paste the configuration file into the router by selecting Edit > Paste to Host on the HyperTerminal menu. 19. After the configuration has finished pasting, and the router brings you back to the configuration prompt, issue the copy running-config startup-config command. This writes the configuration into memory.
On Cisco Router/Switches:
- Type "terminal length 0" in privileged mode to set your terminal to display without any breaks.
- Type "show run" or "show start" to show the applicable config.
- To display the config without lengthy certificate data, use "show run brief ".
Backup Cisco Configs Using Putty
- Launch putty and connect to your Cisco router/switch.
- Go to Session and click on Logging, select “Log all session output”
- Click on Browse and choose the location and name of the file (I like to place my config file on my desktop – C:Documents and SettingsAdministratorDesktopconfig.txt)
Breakdown: To copy the running-config to NVRAM so that it will be retained across a restart, you type the copy running-config startup-config command. The best answer, however, is to use the command shortcut: copy run start which involves much less typing.
To save the running configuration to the startup configuration file so that all current configuration details are available after a reboot, use the copy running-config startup-config command.
The command to back up the configuration on a router is copy running-config startup-config.
To back up the router configuration settings:
- Launch an Internet browser from a computer or wireless device that is connected to the network.
- The user name is admin. The default password is password.
- Click ADVANCED > Administration > Backup Settings.
- Click Back Up.
- Specify a location on your network.
Restoring the IOS image file in the ROMMON mode. To download a new IOS image file from the TFTP server, the 'tftdnld' command is used.
The command to copy the IOS from a TFTP server to the router is copy tftp flash. They will be prompted for the name of the file, which is igs-j-l. 111-5, and the ip address of the TFTP server.
Visit the Cisco Linksys support site and select you router's model to see if there is an updated version. If there is a new version, download it to a convenient location on your system. On your router go to Administration >> Firmware Upgrade. Browse to the location of the latest drive you just downloaded.
Steps to Restore Cisco IOS from ROMMON Mode
- First, execute the show flash command to verify the name of the flash file and copy the file name.
- Next, execute the following commands to take the backup of the flash file on TFTP server.
- The following figure shows how to take backup of the flash file on TFTP server.
Copy IOS image To Cisco Router From ROMmon Mode
- You will need have a valid Cisco IOS image which is to be loaded in the Flash of the router.
- A TFTP server needs to be running on the network from where the router can get the IOS image.
- The PC on which you are operating and the router should be connected to the same network.