10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image (Answers)

Packet Tracer Packet Tracer Labs Original source

10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image Answers

Topology

10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image topology

10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image

Addressing Table

Device Interface IP Address Subnet Mask Default Gateway
R1 G0/0/0 192.168.2.1 255.255.255.0 N/A
R2 G0/0 192.168.2.2 255.255.255.0 N/A
S1 VLAN 1 192.168.2.3 255.255.255.0 192.168.2.1
TFTP Server NIC 192.168.2.254 255.255.255.0 192.168.2.1

Objectives

Scenario

A TFTP server can help manage the storage of IOS images and revisions to IOS images. For any network, it is good practice to keep a backup copy of the Cisco IOS Software image in case the system image in the router becomes corrupted or accidentally erased. A TFTP server can also be used to store new upgrades to the IOS and then deployed throughout the network where it is needed. In this activity, you will upgrade the IOS images on Cisco devices by using a TFTP server. You will also backup an IOS image with the use of a TFTP server.

Instructions

Part 1: Upgrade an IOS Image on a Cisco Device

Step 1: Upgrade an IOS image on a router.

a. Access the TFTP server and enable the TFTP service.

Click TFTP Server > Services tab > TFTP. In the Service row, select On to enable the TFTP service.

Active TFTP service on Server - Packet Tracer

b. Note the IOS image files that are available on the TFTP server.

Which IOS images stored on the server are compatible with a 1941 router?

c1900-universalk9-mz.SPA.151-4.M4.bin and c1900-universalk9-mz.SPA.155-3.M4a.bin

c. From R2, issue the show flash: command and record the available flash memory.

221896413

Copy

R2# 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)

d. Copy the CISCO1941/K9 IOS version 15.5 image for the 1941 router from the TFTP Server to R2.

Note: In an actual network, if there is more than one interface active on the router, you may need to enter the ip tftp source interface command to specify which interface should be used to contact the TFTP server. This command is not supported in PT 7.2 and older versions and is not necessary to complete this activity.

Copy

R2# copy tftp: flash:

Address or name of remote host []? 192.168.2.254

Source filename []? c1900-universalk9-mz.SPA.155-3.M4a.bin

Destination filename [c1900-universalk9-mz.SPA.155-3.M4a.bin]?



Accessing tftp://192.168.2.254/c1900-universalk9-mz.SPA.155-3.M4a.bin....

Loading c1900-universalk9-mz.SPA.155-3.M4a.bin from 192.168.2.254: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 33591768 bytes]



33591768 bytes copied in 3.476 secs (1014671 bytes/sec)

e. Verify that the IOS image has been copied to flash.

How many IOS images are located in flash?

2

Copy

R2# show flash:



System flash directory:

File  Length   Name/status

  3   33591768 c1900-universalk9-mz.SPA.151-4.M4.bin

  5   33591768 c1900-universalk9-mz.SPA.155-3.M4a.bin

  2   28282    sigdef-category.xml

  1   227537   sigdef-default.xml

[67439355 bytes used, 188304645 available, 255744000 total]

249856K bytes of processor board System flash (Read/Write)

f. Use the boot system command to load the version 15.5 IPBase image on the next reload.

Copy

R2(config)# boot system flash c1900-universalk9-mz.SPA.155-3.M4a.bin

g. Save the configuration and reload R2.

Copy

R2# copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

Copy

R2# reload

Proceed with reload? [confirm]

System Bootstrap, Version 15.1(4)M4, RELEASE SOFTWARE (fc1)

<output omitted>

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.5(3)M4a, RELEASE SOFTWARE (fc1)

<output omitted>

Press RETURN to get started!



R2>

h. Use the show version command to verify the upgraded IOS image is loaded after R2 reboots.

Copy

R2# show version

Cisco IOS Software, C1900 Software (C1900-UNIVERSALK9-M), Version 15.5(3)M4a, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2016 by Cisco Systems, Inc.

Compiled Thu 06-Oct-16 13:56 by mnguyen



ROM: System Bootstrap, Version 15.0(1r)M9, RELEASE SOFTWARE (fc1)



R2 uptime is 54 seconds

System returned to ROM by power-on

System image file is "flash0:c1900-universalk9-mz.SPA.155-3.M4a.bin"

Last reload type: Normal Reload

Last reload reason: Reload Command

<output omitted>
Step 2: Upgrade an IOS image on a switch.

a. Access the TFTP server and copy the c2960-lanbasek9-mz.150-2.SE4.bin image to S1.

Copy

S1# copy tftp: flash:

Address or name of remote host []? 192.168.2.254

Source filename []? c2960-lanbasek9-mz.150-2.SE4.bin

Destination filename [c2960-lanbasek9-mz.150-2.SE4.bin]?



Accessing tftp://192.168.2.254/c2960-lanbasek9-mz.150-2.SE4.bin....

Loading c2960-lanbasek9-mz.150-2.SE4.bin from 192.168.2.254: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 4670455 bytes]



4670455 bytes copied in 3.042 secs (123434 bytes/sec)

b. Use the boot system command to configure the switch to load the new IOS image on boot.

Copy

S1(config)# boot system flash:c2960-lanbasek9-mz.150-2.SE4.bin

c. Reload S1 and verify the new image has been loaded into memory.

Copy

S1# copy running-config startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

Copy

S1# reload

Proceed with reload? [confirm]

C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)

<output omitted>

Loading "flash:/c2960-lanbasek9-mz.150-2.SE4.bin"...

########################################################################## [OK]

<output omitted>

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)

<output omitted>

Press RETURN to get started!



S1> enable

Copy

S1# show version

Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2013 by Cisco Systems, Inc.

Compiled Wed 26-Jun-13 02:49 by mnguyen



ROM: Bootstrap program is C2960 boot loader

BOOTLDR: C2960 Boot Loader (C2960-HBOOT-M) Version 12.2(25r)FX, RELEASE SOFTWARE (fc4)



Switch uptime is 39 minutes

System returned to ROM by power-on

System image file is "flash:c2960-lanbasek9-mz.150-2.SE4.bin"

<output omitted>

Copy

S1# show boot

BOOT path-list      : flash:c2960-lanbasek9-mz.150-2.SE4.bin

Config file         : flash:/config.text

Private Config file : flash:/private-config.text

Enable Break        : no

Manual Boot         : no

HELPER path-list    :

Auto upgrade        : yes

NVRAM/Config file

      buffer size:   65536

d. Close the TFTP configuration window if it is still open.

Part 2: Backup an IOS Image to a TFTP Server

a. On R1, display the contents of flash and record the IOS image.

isr4300-universalk9.03.16.05.S.155-3.S5-ext.SPA.bin

Copy

R1# show flash:



System flash directory:

File  Length   Name/status

  3   486899872isr4300-universalk9.03.16.05.S.155-3.S5-ext.SPA.bin

  2   28282    sigdef-category.xml

  1   227537   sigdef-default.xml

[487155691 bytes used, 2761893909 available, 3249049600 total]

3.17338e+06K bytes of processor board System flash (Read/Write)

b. Use the copy command to back up the IOS image in flash memory on R1 to a TFTP server. Note: The isr4300 image is considerably larger than the c1900 image. It will take longer to transmit it to the TFTP server.

Copy

R1# copy flash: tftp:

Source filename []? isr4300-universalk9.03.16.05.S.155-3.S5-ext.SPA.bin

Address or name of remote host []? 192.168.2.254

Destination filename [isr4300-universalk9.03.16.05.S.155-3.S5-ext.SPA.bin]?



Writing isr4300-universalk9.03.16.05.S.155-3.S5-ext.SPA.bin....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

<output omitted>

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 486899872 bytes]



486899872 bytes copied in 9.904 secs (158377 bytes/sec)

c. Access the TFTP server and verify that the IOS image has been copied to the TFTP server.

Note: You may have to start and stop the TFTP service on the server so the file appears in the file listing.

Device Configs - Final

ROUTER R2

Copy

! ==============================================================

!--- 10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image

!--- ANSWER SCRIPT FOR ROUTER R2

!--- Usage: open the R2 CLI tab. Type the copy and reload commands by hand with the answers listed; paste the other lines at the R2# prompt. Every line beginning with "!" is a comment; IOS ignores it.

! ==============================================================



! --------------------------------------------------------------

!--- Part 1, Step 1: Upgrade the IOS image

! --------------------------------------------------------------



!--- Copy the new image from the TFTP Server. Type by hand at R2#:  copy tftp: flash:

!---    Address or name of remote host []? 192.168.2.254

!---    Source filename []? c1900-universalk9-mz.SPA.155-3.M4a.bin

!---    Destination filename [c1900-universalk9-mz.SPA.155-3.M4a.bin]? (press Enter)



enable

show flash:



configure terminal



!--- Load the new image on the next reload.

boot system flash c1900-universalk9-mz.SPA.155-3.M4a.bin



end



!--- Save the configuration. (Press Enter when prompted for the destination filename.)

copy running-config startup-config



!--- Type by hand at R2#:  reload  (press Enter to confirm)



! ==============================================================

!--- Verification:

!---   show version   -> System image file is "...c1900-universalk9-mz.SPA.155-3.M4a.bin"

! ==============================================================

SWITCH S1

Copy

! ==============================================================

!--- 10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image

!--- ANSWER SCRIPT FOR SWITCH S1

!--- Usage: open the S1 CLI tab. Type the copy and reload commands by hand with the answers listed; paste the other lines at the S1# prompt. Every line beginning with "!" is a comment; IOS ignores it.

! ==============================================================



! --------------------------------------------------------------

!--- Part 1, Step 2: Upgrade the IOS image

! --------------------------------------------------------------



!--- Copy the new image from the TFTP Server. Type by hand at S1#:  copy tftp: flash:

!---    Address or name of remote host []? 192.168.2.254

!---    Source filename []? c2960-lanbasek9-mz.150-2.SE4.bin

!---    Destination filename [c2960-lanbasek9-mz.150-2.SE4.bin]? (press Enter)



enable

show flash:



configure terminal



!--- Load the new image on the next reload.

boot system flash:c2960-lanbasek9-mz.150-2.SE4.bin



end



!--- Save the configuration. (Press Enter when prompted for the destination filename.)

copy running-config startup-config



!--- Type by hand at S1#:  reload  (press Enter to confirm)



! ==============================================================

!--- Verification:

!---   show version   -> System image file is "...c2960-lanbasek9-mz.150-2.SE4.bin"

! ==============================================================

Download Packet Tracer (.pka) file:

Icon

10.7.6 Packet Tracer - Use a TFTP Server to Upgrade a Cisco IOS Image.pka 423.05 KB 6894 downloads

...

Download

Previous Lab
10.6.13 Packet Tracer – Research and Execute Password Recovery Procedures – Physical Mode

Next Lab
10.8.1 Packet Tracer – Configure CDP, LLDP, and NTP

← All Packet Tracer articles Home