TFTP Labor in Packet Tracer

Explanation of TFTP server :

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

To do:

  1. Set IP addresses for all devices
  2. Copy configuration to TFTP server
  3. Restore configuration from TFTP server
  4. Copy new image from tftp server to router R1 set that image for default and reload router
  5. Copy new image from tftp server to switch S1 set that image for default and reload switch
  6. Copy current router image to tftp server with some different name

1. Set IP addresses for all devices

Topology:

Using next IP-Plan:

Device Interface

IP Address/prefix

Default Gateway
R1 FastEthernet0/0 192.168.2.1/24 N/A
R2 FastEthernet0/0 192.168.2.2/24 N/A
S1 VLAN1 192.168.2.3/24 192.168.2.1
Server FastEthernet0 192.168.2.254/24 192.168.2.1

--check from server console other hosts, for example
SERVER>ping 192.168.2.2
--Turn On tftp server by clicking on
--check server by ping from other hosts, for example from router
R1>ena
R1#ping 192.168.2.254

NB! Howto setup IP for Switch

--Set IP vo VLAN 1(management) on cisco switch
S1#conf t
S1(config)#interface vlan1
S1(config-if)#ip address 192.168.2.3 255.255.255.0
S1(config-if)#no shut
%LINK-5-CHANGED: Interface Vlan1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

S1(config-if)#exit
S1(config)#exit
S1#ping 192.168.2.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.254, timeout is 2 seconds:
.!!!!
Success rate is 80 peurcent (4/5), round-trip min/avg/max = 0/0/0 ms

___________________________________________


2. Making copy of router configuration on TFTP server


--Copy configuration to external tftp server. Change in the file name <todaydate> to current date
Router#copy run tftp
Address or name of remote host []? 192.168.2.254
Destination filename [Router-confg]? S1-conf-<todaydate>.txt
Writing running-config...!!
[OK - 633 bytes]
633 bytes copied in 0.001 secs (633000 bytes/sec)

--On server tftp service try to find file with name you typed before
_________________________________________


3. Restoring router configuration from TFTP server


R1>ena
R1#copy tftp start
Address or name of remote host []? 192.168.2.254
Source filename []?S1-conf-26102016.txt
             Note: name must exactly match the name of the file saved above in Step 3
Destination filename [startup-config]? Press Enter to accept
R1#show startup-config
R1#reload
R1#show run

4. Copy new image from tftp server to router R1 set that image as default for boot and reload router

Upgrade an IOS image on a router.

NB! Use for router boot image: c1841-ipbasek9-mz.124-12.bin

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

b. Note the IOS images that are available on the TFTP server.
    Which IOS images stored on the server are compatible with 1841?

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

d. Copy the IPBase with strong encryption IOS image (ipbasek9) for the 1841 router from the TFTP Server to R1.

R1# copy tftp: flash:
Address or name of remote host []? 192.168.2.254
Source filename []?
c1841-ipbasek9-mz.124-12.bin
Destination filename [c1841-ipbasek9-mz.124-12.bin]?
<Enter>

Accessing tftp://192.168.2.254/c1841-ipbasek9-mz.124-12.bin....
Loading c1841-ipbasek9-mz.124-12.bin from 192.168.2.254:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 16599160 bytes] 16599160 bytes copied in 3.44 secs (1079726 bytes/sec)

e. Verify that the IOS image has been copied to flash. How many IOS images are located in the flash:?

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

S1# conf t
S1(config)#
boot system flash c1841-ipbasek9-mz.124-12.bin

g. Save the configuration and reload R1.

h. Verify the upgraded IOS image is loaded after R1 reboots.

5. Copy new image from tftp server to switch S1 set that image as default for boot and reload switch

Upgrade an IOS image on a switch.

NB! Use for switch boot image: c2960-lanbasek9-mz.150-2.SE4.bin

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

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

b. Verify that this new image is listed first in the show flash: output.
    Note: The first image listed the show flash: output is loaded by default.

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

6. Copy current router image to tftp server with some different name

Backup an IOS Image to a TFTP Server

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

b. Use the copy command to backup the IOS image in flash memory on R2 to a TFTP server with name R2-image-<todaydate>.bin, change <todaydate> to current date

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

___________________________________________

Show teacher:

  1. booted new firmware image on router
  2. booted new firmware image on switch
  3. backuped router image on tftp server
  4. backuped configuration of router on tftp server
  5. backuped configuration of switch on tftp server

Used from : ("9.1.2.5 Packet Tracer - Using a TFTP Server to Upgrade a Cisco IOS Image Instructions.pdf")

helper