当前位置:主页   - 电脑 - 认证考试 - Cisco
CCNA(Stand-ALONE)Lab 20-Copying and Pasting configurations
来源:网络   作者:redking   更新时间:2010-09-26
收藏此页】    【字号    】    【打印】    【关闭

  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

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

  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.

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

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

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

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

  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.

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

  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.

  本文出自 “王乾De技术Blog” 博客,请务必保留此出处http://redking.blog.51cto.com/27212/72441

其它资源
来源声明

版权与免责声明
1、本站所发布的文章仅供技术交流参考,本站不主张将其做为决策的依据,浏览者可自愿选择采信与否,本站不对因采信这些信息所产生的任何问题负责。
2、本站部分文章来源于网络,其版权为原权利人所有。由于来源之故,有的文章未能获得作者姓名,署“未知”或“佚名”。对于这些文章,有知悉作者姓名的请告知本站,以便及时署名。如果作者要求删除,我们将予以删除。除此之外本站不再承担其它责任。
3、本站部分文章来源于本站原创,本站拥有所有权利。
4、如对本站发布的信息有异议,请联系我们,经本站确认后,将在三个工作日内做出修改或删除处理。
请参阅权责声明