Copy Running-Config into Startup-Config and Reset a Cisco Router
The purpose of Copy Running-Config into Startup-Config command to Save Running
Configuration (RAM) into Startup
Configuration so when the Router gets loaded, the Startup-Config is copied to Running-config.
Running-config vs Startup-Config |
Router> enable
Router# configure terminal
Enter configuration commands, one per line. End with
CNTL / Z.
Router
(config) # hostname R1
R1 (config) # exit
R1# copy running-config startup-config
You
could also use the following commands…
R1# copy run start
OR
R1# copy run-config startup-config
OR
R1#
write memory
OR
R1# wr
Destination filename [startup-config]?
Building configuration…
[OK]
R1#
R1# show startup-config
Using 647 out of 129016 bytes
!
Version 12.3
Service timestamps debug Datetime msec
Service timestamps log Datetime msec
No service password-encryption
!
hostname R1
!
<--- OUTPUT OMITTED --->
!
!
!
!
!
No ip http server
No ip http secure-server
IP classless
!
!
Control-plane
!
Banner motd ^Welcome to about 2 Networking.com^
!
Line con 0
Exec-timeout 00
Logging synchronous
line aux 0
Line vty 0 4
!
!
End
Tip:
From the results, one can realize that the startup-config is the replica of
running-config. The startup-config file contents do not get erased when the
Router gets reloaded. However, manually we can erase the startup-config file.
Remove Startup-configuration or NVRAM by using the
following commands…
R1#
erase startup-config
You could also use the following commands to erase
the startup-config…
R1# write erase
OR
R1# wr er
Erasing the NVRAM file system will remove all
configuration files! Continue? [Confirm]
[OK]
Erase
of nvram: complete
R1#
*April 22 10:52:32.483%SYS-7-NV_BLOCK_INIT:
Initialized the geometry of nvram
R1# show startup-config
Startup-config is not present.
Search
Tags
- Resetting router to factory default
- How to Reset a Cisco Router
- Copy startup-config to running-config
- Copy running-config to startup-config
0 Comments