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
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
![](https://i-blog.csdnimg.cn/blog_migrate/e0eee83650dacac44758253db6feaad2.png)
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.
![](https://i-blog.csdnimg.cn/blog_migrate/c4e9970702c6fc67241484e65c4a0727.png)
![](https://i-blog.csdnimg.cn/blog_migrate/8b6c78ad0e21ca59960a906fa0957477.png)
3. After you have saved the file, exit the Simulator, and then start it again. Reload Stand-Alone Lab 20 from the Lab Navigator.
![](https://i-blog.csdnimg.cn/blog_migrate/154bebbad8e2ed00b706f86c2408db23.png)
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.
![](https://i-blog.csdnimg.cn/blog_migrate/35a0abb23c91b0b508c325b72d1798ce.png)
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
,如需转载请自行联系原作者