您的位置:首页 > 运维架构

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

2008-04-19 16:10 471 查看
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.
***********************************************
Above:CCNA(Stand-ALONE)Lab 19-Loading Router configurations
Next:CCNA(Stand-ALONE)Lab 21-ISDN
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息