CCNA(Stand-ALONE)Lab 7-Copy Command

Objective: Become familiar with the router configuration and the copy commands available in the Cisco IOS.
Lab Equipment: Router 1 from the eRouters menu
Background Reading: Lab Primer Lesson 1: Introduction to the Cisco Router Command-Line Interface
1. Connect to Router 1, and enter privileged mode.
Router>enable
Router#

2. Display the active configuration in memory. The currently active configuration script running on the router is referred to as the running-config in the router’s CLI. Note that privileged mode is required to display the active configuration. The running configuration script is not automatically saved on a Cisco router and will be lost in the event of power failure. The running configuration must be manually saved with the copy command.
Router#show running-config

3. Try to display the configuration stored in NVRAM (known as the startup-config). You have not saved the configuration, so there is not one to show.
Router#show startup-config

4. Copy the current active configuration to NVRAM. The current active configuration is in RAM; it should be saved so that the router will still boot up with the configuration in the event of a power outage.
Router#copy running-config startup-config

5. Now, show the configuration stored in NVRAM.
Router#show startup-config

6. If you decide that you would like to configure the router from scratch, you can erase the startup configuration and reload the router. This will enable you to completely delete all configurations on the router so that you can start from scratch. Type the command that will delete the configuration file in NVRAM. When prompted, confirm that you do want to erase the NVRAM file system by pressing the Y key.
Router#erase startup-config

7. Now, type the command to reload the router, and press the Y key when prompted to confirm the reload.
Router#reload

8. After the router reboots, look at the startup configuration file again. Because you did not save it before you reloaded, there is nothing there.
Router>enable
Router#show startup-config

9. Now, change the host name of the router to Boson.
Router#config terminal
Router(config)#hostname Boson
Boson(config)#exit
Boson#

10. Save your router configuration, and reload the router. Again, press the Y key when prompted to confirm the reload.
Boson#copy run start
Boson#reload

11. After the router reloads, the host name of Boson appears in the prompt. If you run the show startup-config command, nothing appears.
Boson>enable
Boson#show startup-config
******************************************************
 



本文转自redking51CTO博客,原文链接:http://blog.51cto.com/redking/71596 ,如需转载请自行联系原作者


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值