CCNA(Stand-ALONE)Lab 20-Copying and Pasting configurations

Objective: Learn to save, reload, and paste modified configurations from within the Simulator.
Lab Equipment: Router1 from the eRouters menu
    Cisco Routers use a command-line parsing routine. Each time you press a carriage return, the router parses that command and executes the code that is required to carry out the command.
    The Simulator works the same way. When you are working with the Simulator, you can easily switch between devices using the menus across the top of the main window. The Simulator offers some built-in saving and loading options.
1. Set the host name of Router 1 to Router1.
Router>enable
Router(config)#hostname Router1

2. Select the Save Single Device config option from the File menu. The program will ask for a file name; use Router1, and click Save. Save the files to a convenient location that you will remember easily.

3. After you have saved the file, exit the Simulator, and then start it again. Reload Stand-Alone Lab 20 from the Lab Navigator.

4. Select the Load Single Device config (overwrite) option from the File menu. Select the Router1.rtr fi le that you just saved, and click Open.

5. The program will then open the file and execute all the commands that were previously saved on the device. Once it is finished, you will notice that the host name has been restored.
 
6. Two other options under the File menu offer similar functionality: the Save Multi Devices configs option and the Load Multi Devices configs option. These two options respectively will save and load the configurations for all the devices.

7. Saved files can be edited easily. Minimize the program, and double-click the Router1.
rtr file that you just saved to your computer. When the operating system asks you which program you would like to use to open the file, select Microsoft Notepad.

8. Notepad will launch with Router1’s running configuration displayed. You will see the hostname command a few lines down. Change this line from hostname Router1 to hostname Miami. Save your changes.

9. Now, repeat step 4, and observe the host name change.

10. If you have created a configuration that you want to paste into the routers, the program offers a tool to allow you to do this.

11. First, make sure Router1 is open. Select the Paste Real Router configs option from the File menu. This will open a window that will allow you to paste configuration files you would like to have executed on Router1. In the empty text box, type the following:
hostname Router1
interface Ethernet 0
ip address 1.1.1.1 255.255.255.0
no shutdown
exit
exit

12. After you have typed the commands above, click the OK button. The router will quickly execute the commands. Notice that the host name of the router will change back to Router1.

13. Execute the show ip interface brief command on Router1 to see that the IP address has been set for Ethernet 0.
***********************************************




本文转自redking51CTO博客,原文链接: http://blog.51cto.com/redking/72441 ,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值