Sie sind auf Seite 1von 4

Lab ID: 9.9K713A078.SQI1.

Sequential Lab: Trivial File Transfer Protocol


Objective
Congure PC1 as a Trivial File Transfer Protocol (TFTP) server. Back up Router4’s conguration and
restore it to the TFTP server.

Lab Topology
The Topology diagram below represents the NetMap in the Simulator.

Router4
Fa0/0

Switch1

Switch2

PC1 PC3

Command Summary
Command Description
enable enters privileged EXEC mode
copy running-cong {rcp | startup- copies a device’s running conguration le to another destination
cong | tftp | device:lename}
copy tftp {running-cong | startup- copies a le from a TFTP server to another destination
cong | device:lename}
erase startup-cong deletes the startup conguration le in non-volatile random access
memory (NVRAM)
ipcong /dg ip-address used in NetSim to assign a default gateway IP address to a
workstation interface
ipcong /ip ip-address subnet-mask used in NetSim to assign an IP address and subnet mask to a
workstation interface

1 Boson NetSim Lab Manual


Command Description
ping ip-address sends an Internet Control Message Protocol (ICMP) echo request
to the specied address
show startup-cong displays the backup conguration le
show tftp-congs used in NetSim to display a list of les copied using TFTP and
stored on a PC
The IP addresses and subnet masks used in this lab are shown in the table below:

IP Addresses
Device IP Address Subnet Mask Default Gateway
PC1 192.168.1.2 255.255.255.0 192.168.1.1
PC3 192.168.1.3 255.255.255.0 192.168.1.1

Lab Tasks
The passwords in this lab have been congured as cisco.
1. Congure PC1 and PC3 with the appropriate IP address and default gateway; refer to the IP
Addresses table. PC1 is automatically enabled to be a TFTP server.

2. On Router4, make sure that you can ping PC1 (192.168.1.2). The ping should be successful.

3. On Router4, copy the running conguration to the TFTP server. You will be prompted for the IP
address of the TFTP server (192.168.1.2). You will also be prompted for a le name (you may
choose any name).

4. On the TFTP server (PC1), issue the show tftp-congs command to see whether Router4’s
conguration was successfully backed up.

Note: This is not a standard PC command; it is only used within the NetSim product.

5. In the following steps, you will restore the conguration you saved on the TFTP server to NVRAM on
Router4 and verify that the starting conguration was updated successfully.

a) Change the host name of Router4 to MainRouter.


b) Restore the conguration from the TFTP server to NVRAM on Router4 with the copy tftp
startup-cong command.

6. Issue the show startup-cong command. You should now see the restored conguration le in
NVRAM. What is the current host name of Router4? _____________________________________

7. Issue the copy startup-cong running-cong command to apply the conguration stored in
NVRAM to Router4. After the command is issued, what is the host name of Router4? ___________

8. Is it necessary to clear Router4’s NVRAM in order to copy a le into it? Explain why or why not. __
______________________________________________________________________________

2 Boson NetSim Lab Manual


Lab Solutions
The passwords in this lab have been congured as cisco.
1. Issue the following commands to congure PC1 and PC3; PC1 is automatically enabled to be a
TFTP server:

On PC1:
c:>ipconfig /ip 192.168.1.2 255.255.255.0
c:>ipconfig /dg 192.168.1.1

On PC3:
c:>ipconfig /ip 192.168.1.3 255.255.255.0
c:>ipconfig /dg 192.168.1.1

2. A ping from Router4 to PC1 (192.168.1.2) should be successful.

Router4>enable
Password:cisco
Router4#ping 192.168.1.2

3. On Router4, copy the running conguration to the TFTP server. You will be prompted for the IP
address of the TFTP server (192.168.1.2). You will also be prompted for a le name (you may
choose any name).

Router4#copy running-config tftp


Address or name of remote host []?192.168.1.2
Destination filename [temp.rtr]?rtr4backup.rtr
!!!!!

4. On the TFTP server (PC1), issue the show tftp-congs command to see whether Router4’s
conguration was successfully backed up.

Note: This is not a standard PC command; it is only used within the NetSim product.

The following is sample output from the show tftp-congs command:

C:>show tftp-configs

Filename File Size


rtr4backup.rtr 9055 bytes

5. In the following steps, you will restore the conguration you saved on the TFTP server to NVRAM on
Router4 and verify that the starting conguration was updated successfully.

a) Issue the following commands to change the host name of Router4 to MainRouter:

Router4#configure terminal
Router4(config)#hostname MainRouter
MainRouter(config)#exit

(continued on next page)

3 Boson NetSim Lab Manual


(continued from previous page)

b) Restore the conguration from the TFTP server to NVRAM on Router4 with the copy tftp
startup-cong command. The following is sample output from the copy tftp startup-cong
command:

MainRouter#copy tftp startup-config


Address or name of remote host []?192.168.1.2
Source filename []?rtr4backup.rtr
!!!!!

6. The current host name of Router4 is MainRouter. The host name shown in the starting conguration
is Router4 but will not be applied unless the router is restarted or reloaded.

7. After you issue the copy startup-cong running-cong command, the host name of Router4 is
Router4.

8. No, it is not necessary to clear Router4’s NVRAM in order to copy a le into it. Copying a le into
NVRAM completely overwrites what is already stored in NVRAM. Copying a le into dynamic
random access memory (DRAM), or the running conguration, however, causes the new le to be
merged with what is already stored in DRAM.

Copyright © 1996–2013 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.

4 Boson NetSim Lab Manual

Das könnte Ihnen auch gefallen