4.- saving router configurations 4
TRANSCRIPT
1 Boson NetSim Lab Manual
Stand-Alone Lab: Saving Router Con gurationsObjectiveLearn to copy the running con guration to the startup con guration. Con gure Router1 with the appropriate
settings.
Lab TopologyThe topology in this lab contains three 2800 series Cisco routers.
S0/0/0
Router1 Router3
Router2S0/0/1
S0/0/0
S0/0/0
Command Summary
Command Description
con gure terminal enters global con guration mode from privileged EXEC mode
copy running-con g startup-con g saves the con guration le
enable enters privileged EXEC mode
end ends and exits con guration mode
erase startup-con g deletes the startup con guration le in non-volatile random
access memory (NVRAM)
exit exits one level in the menu structure
hostname host-name sets the device name
reload reboots the router
show running-con g displays the active con guration le
show startup-con g displays the backup con guration le
Lab Tasks
Task 1: Load the Initial Network Con guration
Make sure that the correct topology and con guration les for this lab are loaded. This will occur automatically
when you load this lab by using the Lab Navigator.
Lab ID: 8.8K312A033.SAI1.1
2 Boson NetSim Lab Manual
Task 2: Learn the Copy Command
1. From user EXEC mode, issue the enable command to enter privileged EXEC mode. Then con gure a host
name of Router1 for the router.
�����������
������� �����������������
������� �����������������������
�������� ����������
2. Issue the show running-con g command to display the active con guration in memory. The active
con guration running on the router is referred to as the running-con g in the router’s command-line
interface (CLI). Note that privileged EXEC mode is required to display the active con guration. The running
con guration script is not automatically saved on a Cisco router and will be lost in the event of power
failure. The running con guration must be manually saved with the copy command.
��������������������� ������
��������� ��������������
�
�����������
���!� ���������"��������"����
���!� ���������"�������"����
������!� ��"��������� �#"����
�
���������������
�
�"�������$���
%���"�����������
3. Issue the show startup-con g command to display the con guration stored in NVRAM. You have not
saved the con guration, so none can be displayed. Therefore, you should see a &&�'���!�������
�����������������#��������"�������message.
������������������"� ������
&&�'���!������� �����������������#��������"�������
4. Issue the copy running-con g startup-con g to copy the current active con guration to NVRAM. The
current active con guration is in random access memory (RAM); it should be saved so that the router will
still boot up with the saved con guration in the event of a power outage.
�������� �"#��������� �����������"� ������
(������������������)�����"� �����*+
��������� ��������������
),-*
3 Boson NetSim Lab Manual
5. Issue the show startup-con g command to show the con guration stored in NVRAM.
������������������"� ������
.������� ������������/�011�#���
�
�����������
���!� ���������"��������"����
���!� ���������"�������"����
������!� ��"��������� �#"����
�
���������������
�
�"�������$����
%���"�����������
6. If you decide that you would like to start con guring the router from scratch, you can erase the startup
con guration and reload the router. This will enable you to completely delete all con gurations on the
router. Issue the erase startup-con g command to delete the con guration le in NVRAM. When
prompted, con rm that you want to erase the NVRAM le system by pressing the Y key.
������������������"� �����
2�����������!��������#��������������!������������.�������+�) ������*3
),-*
2��������!��/� ��"����
7. Issue the reload command to reload the router, and press Y when prompted to con rm the reload.
When prompted to enter the initial con guration dialog, press N. The initial con guration dialog prompt is
displayed because a startup con guration was not found. The following is sample output from the reload
command:
�������������
4�� ��������������+�) ������*�
������������������ ��������������
),-*
5���������������"6������������ 6��272852�5,9:;8�2
.�"#������� ���<<=��>���#�������5#�����6�?� �
.�=>>�5��������"�� ������������>@=>�-#����������������#
5������ ��"�����������������/�����
���
���
%���"�����������
;�����#�����A���������������������� �����������������+�)#��B��*/�
4 Boson NetSim Lab Manual
8. After the router reboots, look at the startup con guration le again. Because you did not save it before
you reloaded, there is nothing there. Therefore, you should see a &&�'���!������� ������������
�����#��������"�������message.
�����������
�����������������"� ������
&&�'���!������� �����������������#��������"�������
9. Con gure the host name of the router as Router1.
������� �����������������
������� �����������������������
�������� ��������C��
��������
10. Save your router con guration by issuing the copy running-con g startup-con g command.
�������� �"#��������� �����������"� ������
(������������������)�����"� �����*+
��������� ��������������
),-*
11. Change the host name from Router1 to Boson.
�������� �����������������
�������� ���������������������
������ ��������C��
������
5 Boson NetSim Lab Manual
12. Reload the router by issuing the reload command. Press Y when prompted to con rm the reload. When
prompted to enter the initial con guration dialog, press N.
�����������
4�� ��������������+�) ������*�
5���������������"6���������D�>6��272852�5,9:;8�2
.�"#������� ���<<=��>���#�������5#�����6�?� �
.�=>>�5��������"�� ������������>@=>�-#����������������#
5������ ��"�����������������/������������������������������������������),-*
������,"�������5���������5#����
�,55�������=>>�5���������.�=>>������"�����6���������D�>6��272852�5,9:;8�2
.�"#������� ���<<=��>���#�������5������
5��������?���
�������=>>���,55�������������!������D�>��������>@=>-BD��-���������������#�
�,556���������D�>
��2�������B?222�=>�� ������� ����
��5�����������A������� ����
1-�#��������������������!������� �����������������#�
=�<�-�#����������������"�� ���������������B;�����
;�����#�����A���������������������� �����������������+�)#��B��*/�
13. After the router reloads, the host name Router1, not Boson, is displayed at the prompt because the
con guration used to start the router was the startup con guration. Issue the show startup-con g
command to view the con guration used when the router restarted after you issue the reload command.
������������
������������������"� �����
.������� ������������/�011�#���
�
�����������
���!� ���������"��������"����
���!� ���������"�������"����
������!� ��"��������� �#"����
�
���������������
�"� ��
�
�"�������$���
E�F,�2E�
%���"�����������
Copyright © 1996–2012 Boson Software, LLC. All rights reserved. NetSim software and documentation are protected by copyright law.