| Lab 6.1.4 Router config. TFTP - Overview Estimated time: 20 min. Objectives: Copy a router configuration file to a TFTP server. Configure a router from a TFTP server. Background: In this lab we will use a TFTP (Trivial File Transfer Protocol) server to save a copy of the router's configuration file. We will also configure the router from the TFTP server. Using a TFTP server is an excellent way to keep backup copies of configuration files for routers and other network equipment, such as switches. Additionally, IOS images can be stored on a TFTP server. A TFTP server is simpler to use than a standard FTP server. TFTP does not require a user to have a password, or to navigate between directories. For this reason, it is important to have the TFTP server secure (i.e. not available to the general public). TFTP uses UDP rather than TCP like a standard FTP server does. TFTP is a very basic file transfer utility and does not require the guaranteed delivery services of TCP. The TFTP "server" can be a file server, a workstation or even a Cisco router and it must have the TFTP utility installed and running. You can download the Cisco TFTP server at no cost from the web site listed below. Tools / Preparation: Prior to starting this lab you will need to connect a PC workstation (with the HyperTerminal program loaded) to a router using the router's console interface with a roll-over (console) cable. All lab work is done through the HyperTerminal program that is configured to connect to the router. Verify that the Cisco TFTP server is installed on a server accessible by the router. You may want to review Chapter 13 in the Cisco Networking Academy First-Year Companion Guide and review semester 2 online curriculum Chapter 6 prior to starting this lab. Work individually or in teams. Be familiar with the following commands: copy running-config erase startup-config reload Resources Required: PC with monitor, keyboard, mouse, and power cords, etc. Windows operating system (Win 95, 98, NT or 2000) installed on PC HyperTerminal program configured for router console access PC connected to the Router console port with a roll-over cable The TFTP installed and running on a workstation accessible from the router you are working on (Note: If the TFTP server is not installed you can download it from the web site listed below and copy it to the workstation which will act as the TFTP server. Click on the downloaded file to install) Websites Sites Required: Routing basics General information on routers 2500 series routers 1600 series routers Terms and acronyms IP routing protocol IOS command summary Free Cisco TFTP Server (Win 9x version) TFTP Command Syntax Notes: Step 1 - Login to the router Explanation: Connect to the router and login. Enter the password cisco if prompted. Step 2 - Enter the Privileged EXEC mode. Task: a. From user EXEC mode, enter privileged EXEC mode using the enable command. b. Enter the enable password of class. Explanation: Enter the enable mode from the User EXEC mode. Step 3 - Verify connectivity to TFTP server. Task: Enter ping xxx.xxx.xxx.xxx (the IP address of the workstation running the TFTP server. Explanation: Ensure that you can reach the TFTP server from the router. If you cannot, you will first need to check the connections and then check the configurations of the routers in the lab to ensure you can reach the TFTP server. Verify that your workstation has the TFTP server installed and that it is running. Step 4 - Copy configuration file to TFTP server. Task: Enter the command copy running-config tftp (abbreviated: copy run tftp). Explanation: Start the process of copying the router's running configuration to the TFTP server. Enter the command copy running-config tftp (abbreviated: copy run tftp). When prompted for the remote host, enter the IP address you verified in step 3 and press enter. When prompted for the configuration file to write, the default is the router's name, followed by a dash and the word confg (e.g. LAB-A-confg). Accept this name by pressing enter, or type in a new name and press enter. 1. What is the name of the configuration file you are writing on the TFTP server? (Answers will vary) Confirm writing the configuration file to the TFTP server by pressing enter. You will notice exclamation marks appear on the screen, showing the progress of the TFTP file copy process. Step 5 - Erase the startup configuration. Task: Enter command erase startup-config (abbreviated: erase start) at the router prompt. Explanation: The erase startup-config command deletes the contents of NVRAM. Caution should be used with this command since the router executes it without prompting for confirmation. Step 6 - Confirm that startup configuration has been deleted. Task: Enter show startup-config (abbreviated: show start) at the router prompt. Explanation: This step confirms that the router's startup configuration will not be available upon restarting of the router. 2. What does the router show after this command is entered? Step 7 - Restart the router. Task: Enter reload at the router prompt. Explanation: The reload command will reboot the router. When asked to proceed with the reload, enter Y and press the enter key. Note that the router displays the message: "Notice: NVRAM invalid, possibly due to write erase". When prompted to enter the initial configuration dialog, type N and press enter. When prompted to terminate autoinstall type Y and press enter. Press enter once again. 3. What does the prompt look like? Step 8 - Enter the Privileged EXEC mode. Task: From user EXEC mode, enter privileged EXEC mode using the enable command. Explanation: Enter the enable mode from the User EXEC mode. Note that since the configuration has been erased, no password is required. Step 9 - Copy the backup configuration file from TFTP server. Task: Enter the command copy tftp running-config (abbreviated: copy tftp run). Explanation: Start the process of copying the router's running configuration to the TFTP server. Enter the command copy tftp running-config tftp. When prompted for the remote host, press enter to indicate the host configuration file. When prompted for the remote host, enter the IP address you verified in step 3 and press enter. When prompted for the configuration file to write, the default is the router's name, followed by a dash and the word confg (e.g. LAB-A-confg). Accept this name by pressing enter, or type in a new name and press enter or type the name you used in step 4. Confirm copying the configuration file from the TFTP server by pressing enter. When the process is complete, the router indicates the amount of RAM used for the configuration file and the total amount of RAM available on the router. Step 10 - Save new configuration file. Task: Use the command copy running-config startup-config (abbreviated: copy run start) to save the newly created router configuration. Explanation: The copy running-config startup-config command copies the active router configuration from RAM into NVRAM as a backup. Verify that the running configuration is correct by using the show running-config command (abbreviated: show run). Enter the command copy start run at the router prompt.