In this tutorial you will learn how to save a configuration in cisco router, how to erase config in cisco router and Cisco commands for how to show cisco router running config and startup configuration. By Default Cisco routers starts executing startup configurations, any changes made to the router’s configuration while it is running is erased on each restart of a router, if not saved to NVRAM.
If you do want to retain any changes made to the router configurations after a restart then you should know the Cisco commands for saving running configuration to startup configuration. Commands for writing and displaying router running configurations or startup configuration can be executed in Privileged Exec mode. So for displaying, saving or erasing Cisco router configuration you need to be at the Privileged Exec mode. For more about Cisco router modes click here.
At Privileged mode (UpaaeRouter1 being the host name) the prompt will look like this UpaaeRouter1# .
Cisco command to Show running configuration:
If you want to view the currently running configuration of a Cisco router, If you are at User exe mode, Type enable and press enter, for going to Privileged mode. When you are at Privileged mode type show running-config and press enter. show running-config command displays the configuration which are currently active in memory.
UpaaeRouter1# show running-config // executing this command will display the router running configuration.
Cisco Command to show startup configuration:
show startup-config is also a privileged mode command which displays the configuration which is saved to NVRAM of the Cisco router.
UpaaeRouter1# show startup-config // executing this command displays/show startup configuration pf cisco router.
Cisco commands To save configurations in Cisco Router:
Save or Copy running configuration to startup configuration
If you have made some changes to your router’s configuration and you want your router to have these configurations on the next restart then you need to save these configuration to NVRAM. Startup-configuration is stored in NVRAM of the router which means these configurations will be available to the router on next restart. copy running-config startup-config is the command used for storing the currently active running configuration to NVRAM of the router.
UpaaeRouter1# copy running-config startup-config // this command will save the configuration changes you have made (running-configuration) to startup-configuration in the NVRAM.
How To Erase Configuration on Cisco Router:
If you want to clear the configuration of your cisco router follow these steps:
- Log on to your router.
- Enter the privileged EXEC (enable mode) by typing enable command.
- At privileged EXEC mode type write erase, which will erase the NVRAM file system and removes all files.
- Confirm that you want to erase all files at prompt.
- After the complete execution of “step 4” enter reload, and type no when prompted whether to save the configuration.
UpaaeRouter1# write erase
UpaaeRouter1# reload // these two commands will erase both running and startup configurations.
How to Enable Password For line VTY Cisco (Telnet Password) on Cisco Router/Switch (Using Cisco Packet Tracer)
How to Configure Cisco Router Interfaces (FastEthernet and Serial Interfaces)
Connecting Network Computers through Cisco Switch — Cisco CCNA Lab using packet tracer
How to Telnet a Cisco Router – CCNA Lab
Recommended Resources for CCNA Exam:
Following are the resources which every Cisco Networking student should be equipped with, these will not only guarantee passing Cisco Exams, but will help you understand every pitfall and minor details of Cisco networking.
- CCNA Routing and Switching Complete Study Guide: Exam 100-105, Exam 200-105, Exam 200-125
- CCNA Routing and Switching 200-125 Official Cert Guide Library