10.6.10 Packet Tracer - Back Up Configuration Files Answers
Topology
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 gigabitethernet 0/0 Router(config-if)# ip address 172.16.1.1 255.255.255.0 Router(config-if)# no shutdown
c. Test connectivity to TFTP Server. Troubleshoot, if necessary.
Router# ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 msPart 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.
RTA# show running-config Building configuration... Current configuration : 861 bytes ! version 15.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname RTA ! ! ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! ! ! ! ip cef no ipv6 cef ! ! ! ! license udi pid CISCO1941/K9 sn FTX1524JIDH ! ! ! ! ! ! ! ! ! ! ! no ip domain-lookup ! ! spanning-tree mode pvst ! ! ! ! ! ! interface GigabitEthernet0/0 ip address 172.16.1.1 255.255.255.0 duplex auto speed auto ! interface GigabitEthernet0/1 ip address 172.31.1.1 255.255.255.0 duplex auto speed auto shutdown ! interface Vlan1 no ip address shutdown ! ip classless ! ip flow-export version 9 ! ! ! banner motd ^C!! Warning - Authorized Access Only !!^C ! ! ! ! line con 0 password cisco logging synchronous login ! line aux 0 ! line vty 0 4 password cisco login line vty 5 15 password cisco login ! ! ! end
What changes were made?
c. Issue the appropriate show command to display the interface status.
RTA# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 172.16.1.1 YES manual up up
GigabitEthernet0/1 172.31.1.1 YES manual administratively down down
Vlan1 unassigned YES unset administratively down downAre 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 shutdown
C:\> ping 172.16.1.2
Pinging 172.16.1.2 with 32 bytes of data:
Reply from 172.16.1.2: bytes=32 time<1ms TTL=127
Reply from 172.16.1.2: bytes=32 time<1ms TTL=127
Reply from 172.16.1.2: bytes=32 time<1ms TTL=127
Reply from 172.16.1.2: bytes=32 time<1ms TTL=127
Ping statistics for 172.16.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0msPart 3: Back Up Configuration and IOS to TFTP Server
a. Change the hostname of RTA to RTA-1.
RTA(config)# hostname RTA-1
b. 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]?
Writing running-config...!!
[OK - 853 bytes]
853 bytes copied in 0 secsd. 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]?
Writing c1900-universalk9-mz.SPA.151-4.M4.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 33591768 bytes]
33591768 bytes copied in 0.447 secs (7890373 bytes/sec)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: on PCA open Desktop > Terminal (console to the router). Paste one section at a time at the prompt shown in the section. The copy commands ask questions, so type them by hand with the answers listed. Every line beginning with "!" is a comment; IOS ignores it. ! ============================================================== ! -------------------------------------------------------------- !--- Part 1: Establish Connectivity to the TFTP Server (paste at Router>) ! -------------------------------------------------------------- enable configure terminal !--- b. G0/0 uses the default gateway address of the TFTP Server. interface gigabitethernet 0/0 ip address 172.16.1.1 255.255.255.0 no shutdown exit end !--- c. Test connectivity to the TFTP Server. ping 172.16.1.2 ! -------------------------------------------------------------- !--- Part 2: Transfer the Configuration File from the TFTP Server ! -------------------------------------------------------------- !--- a. Type by hand at Router#: copy tftp running-config !--- Address or name of remote host []? 172.16.1.2 !--- Source filename []? RTA-confg !--- Destination filename [running-config]? (press Enter) !--- The hostname changes to RTA. !--- b./c. Display the configuration and the interface status (paste at RTA#). show running-config show ip interface brief !--- d. G0/1 is administratively down: activate it. configure terminal interface gigabitethernet 0/1 no shutdown exit ! -------------------------------------------------------------- !--- Part 3: Back Up Configuration and IOS to TFTP Server ! -------------------------------------------------------------- !--- a. Change the hostname to RTA-1. hostname RTA-1 end !--- b. Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) copy running-config startup-config !--- c. Type by hand at RTA-1#: copy running-config tftp: !--- Address or name of remote host []? 172.16.1.2 !--- Destination filename [RTA-1-confg]? (press Enter) !--- d. Display the files in flash. show flash: !--- e. Type by hand at 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]? (press Enter) ! ============================================================== !--- Verification: !--- show ip interface brief -> G0/0 and G0/1 up/up !--- PCA: ping 172.16.1.2 -> replies from the TFTP Server !--- TFTP Server > Services > TFTP -> RTA-1-confg and c1900-universalk9-mz.SPA.151-4.M4.bin are listed ! ==============================================================





