Copy Running-Config into Startup-Config and Reset a Cisco Router

Copy Running-Config into Startup-Config and Reset a Cisco Router

1.     Copy Running-config into Startup-Config

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.

Copy Running-config into Startup-Config
Running-config vs Startup-Config

Copy Running-Config Startup Config with Packet Tracer

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#

Verification

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.


2.   Reset a Cisco Router

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

Verification

R1# show startup-config

Startup-config is not present.

 

Search Tags

  1. Resetting router to factory default
  2. How to Reset a Cisco Router
  3. Copy startup-config to running-config
  4. Copy running-config to startup-config 

Post a Comment

0 Comments