10.6.10 Packet Tracer - Back Up Configuration Files (Instructor Version)
Instructor Note: Red font color or gray highlights indicate text that appears in the instructor copy only.

10.6.10 Packet Tracer - Back Up Configuration Files
Objectives
- Part 1: Establish Connectivity to TFTP Server
- Part 2: Transfer the Configuration File from TFTP Server
- Part 3: Backup Configuration and IOS to TFTP Server
Background / Scenario
In this activity you will restore a configuration from a backup and then perform a new backup. Due to an equipment failure, a new router has been put in place. Fortunately, backup configuration files have been saved to a Trivial File Transfer Protocol (TFTP) Server. You are required to restore the files from the TFTP Server to get the router back online as quickly as possible.
Instructions
Part 1: Establish Connectivity to the TFTP Server
Note: Because this is a new router, the initial configuration will be performed using a console connection to the router.
a. Click PCA, then the Desktop tab, followed by Terminal to access the RTA command line.
b. Configure and activate the Gigabit Ethernet 0/0 interface. The IP address should match the default gateway for the TFTP Server.
Router(config)# interface g0/0
Router(config-if)# ip address 172.16.1.1 255.255.255.0
Router(config-if)# no shutc. Test connectivity to TFTP Server. Troubleshoot, if necessary.
Part 2: Transfer the Configuration File from the TFTP Server
a. From privileged EXEC mode, issue the following command:
Router# copy tftp running-config Address or name of remote host []? 172.16.1.2 Source filename []? RTA-confg Destination filename [running-config]?
The router should return the following:
Accessing tftp://172.16.1.2/RTA-confg... Loading RTA-confg from 172.16.1.2: ! [OK - 785 bytes] 785 bytes copied in 0.001 secs RTA# %SYS-5-CONFIG_I: Configured from console by console RTA#
b. Issue the command to display the current configuration.
What changes were made?
c. Issue the appropriate show command to display the interface status.
Are all interfaces active?
d. Correct any issues related to interface problems and test connectivity between PCA and the TFTP server.
RTA(config)#interface gigabitEthernet 0/1
RTA(config-if)#no shutdownPart 3: Back Up Configuration and IOS to TFTP Server
a. Change the hostname of RTA to RTA-1.
RTA(config)#hostname RTA-1b. Save the configuration to NVRAM.
RTA-1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]c. Copy the configuration to the TFTP Server using the copy command:
RTA-1# copy running-config tftp: Address or name of remote host []? 172.16.1.2 Destination filename [RTA-1-confg]?
d. Issue the command to display the files in flash.
RTA-1#show flash:
System flash directory:
File Length Name/status
3 33591768 c1900-universalk9-mz.SPA.151-4.M4.bin
2 28282 sigdef-category.xml
1 227537 sigdef-default.xml
[33847587 bytes used, 221896413 available, 255744000 total]
249856K bytes of processor board System flash (Read/Write)e. Backup the IOS in flash to the TFTP Server using the following command:
RTA-1# copy flash tftp: Source filename []? c1900-universalk9-mz.SPA.151-4.M4.bin Address or name of remote host []? 172.16.1.2 Destination filename [c1900-universalk9-mz.SPA.151-4.M4.bin]?
What special character repeatedly displays indicating that the IOS file is being copied to the TFTP server successfully?
f. Open the TFTP Server and click the Services tab, select TFTP, and scroll through the list of IOS files.
Has the IOS file c1900-universalk9-mz.SPA.151-4.M4.bin been copied to the TFTP Server?
Device Configs - Final
ROUTER RTA
! ============================================================== !--- 10.6.10 Packet Tracer - Back Up Configuration Files !--- ANSWER SCRIPT FOR ROUTER RTA !--- Usage: from PCA's Terminal app (console cable, already connected per the topology), !--- enter privileged EXEC mode with "enable", then work through this file. Every line !--- beginning with "!" is a comment; IOS ignores it. !--- UNLIKE most labs in this series, several steps here are interactive EXEC-mode "copy" !--- commands that prompt for follow-up input (remote host, filename, etc.) rather than !--- config-mode statements you can paste in one block - each is annotated with the exact !--- prompts and answers below, matching how you'd actually type them at the console. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Part 1, Step 2: this is a brand-new/replacement router (still hostname "Router" at !--- this point) - bring up G0/0 with the address matching the TFTP Server's default !--- gateway, so the router can reach it before any saved config is restored. ! -------------------------------------------------------------- interface GigabitEthernet0/0 ip address 172.16.1.1 255.255.255.0 no shutdown end ! -------------------------------------------------------------- !--- Part 1, Step 3: confirm reachability before attempting the restore. ! -------------------------------------------------------------- ! Router# ping 172.16.1.2 ! -------------------------------------------------------------- !--- Part 2, Step 1: restore the saved configuration from the TFTP server. This is an !--- interactive command - IOS prompts for each value in turn: !--- Address or name of remote host []? 172.16.1.2 !--- Source filename []? RTA-confg !--- Destination filename [running-config]? [press Enter to accept the default] !--- This MERGES the restored file into the current running-config (it does not wipe !--- G0/0's address set above) - among other things, it renames the router to "RTA". ! -------------------------------------------------------------- ! Router# copy tftp running-config ! (answer the 3 prompts above) ! -------------------------------------------------------------- !--- Part 2, Step 2-3: inspect what changed and check interface status. ! -------------------------------------------------------------- ! RTA# show running-config ! RTA# show ip interface brief ! -------------------------------------------------------------- !--- Part 2, Step 4: the restored config leaves G0/1 administratively down - bring it up to !--- restore connectivity between PCA/TFTP Server and whatever G0/1 leads to. ! -------------------------------------------------------------- configure terminal interface GigabitEthernet0/1 no shutdown end ! -------------------------------------------------------------- !--- Part 3, Step 1: rename the router now that the restore + interface fix are done. ! -------------------------------------------------------------- configure terminal hostname RTA-1 end ! -------------------------------------------------------------- !--- Part 3, Step 2: save to NVRAM so this survives a reload. ! -------------------------------------------------------------- copy running-config startup-config ! -------------------------------------------------------------- !--- Part 3, Step 3: back up the NEW configuration (post-hostname-change) to the TFTP !--- server - interactive prompts again: !--- Address or name of remote host []? 172.16.1.2 !--- Destination filename [RTA-1-confg]? [press Enter to accept the default] ! -------------------------------------------------------------- ! RTA-1# copy running-config tftp: ! (answer the 2 prompts above) ! -------------------------------------------------------------- !--- Part 3, Step 4: confirm the exact IOS image filename before backing it up. ! -------------------------------------------------------------- ! RTA-1# show flash ! -------------------------------------------------------------- !--- Part 3, Step 5: back up the IOS image itself to the TFTP server - interactive prompts: !--- Source filename []? c1900-universalk9-mz.SPA.151-4.M4.bin !--- Address or name of remote host []? 172.16.1.2 !--- Destination filename [c1900-universalk9-mz.SPA.151-4.M4.bin]? [press Enter] !--- Repeated "!" characters print as each block transfers successfully. ! -------------------------------------------------------------- ! RTA-1# copy flash tftp: ! (answer the 3 prompts above) ! ============================================================== !--- Verification: !--- RTA-1# show ip interface brief -> both G0/0 and G0/1 up/up !--- PCA > ping 172.16.1.2 (TFTP Server) -> succeeds !--- On the TFTP Server's Services > TFTP tab -> both RTA-1-confg and !--- c1900-universalk9-mz.SPA.151-4.M4.bin now appear in the file list ! ==============================================================



