How to Save Configuration on a Cisco Router-cisco save config

In Cisco routers, the configuration is stored in a file called “running-config,” which holds the current configuration of the router. here is all the info for cisco save config

To save this configuration permanently, you need to copy the running configuration to the “startup-config” file, which is stored in non-volatile memory (NVRAM).

This process ensures that the configuration remains intact even after a router reboot. To save the configuration in a Cisco router, follow these steps:

Step 1: Enter privileged EXEC mode

Ensure you are in privileged EXEC mode. You can do this by entering the following command:

shell
Router> enable

Step 2: View the current running configuration (optional)
You can view the current running configuration to verify the changes before saving it. Enter the following command:

Lua
Router# show running-config

Step 3: Save the configuration
To save the running configuration to the startup configuration, use the following command:

Lua
Router# copy running-config startup-config

or the shorter form:

Router# write memory

or the even shorter form:

Router# wr

These commands will copy the running configuration to the startup configuration file, and the changes will be saved permanently.

Step 4: Verify the saved configuration

You can verify that the configuration has been successfully saved by checking the contents of the startup configuration file. Use the following command:

Arduino
Router# show startup-config

This will display the contents of the startup configuration, which should now match the running configuration.

Your configuration changes are now saved and will persist across router reboots. If you want to know more about the cisco default password use the link to find :https://theinfocentric.com/cisco-switch-default-password/

 Here are some additional points and tips related to saving the configuration on a Cisco router:

1. Copying configuration to TFTP server:

Instead of saving the configuration to the startup configuration (NVRAM), you can also copy the running configuration to a TFTP (Trivial File Transfer Protocol) server.

This method can be useful for backup purposes or when you want to transfer the configuration to another device. To do this, use the following command:

Lua

Router# copy running-config tftp:

The command will prompt you to enter the IP address of the TFTP server and the filename to save the configuration. For example:

css
Address or name of remote host []? 192.168.1.100
Destination filename [router-config]? my-router-config

The configuration will be saved on the TFTP server with the specified filename.

2. Auto-Save Feature:

Cisco routers usually have an auto-save feature enabled by default, which automatically saves the running configuration to the startup configuration after certain changes are made.

However, it’s a good practice to manually save the configuration using the commands mentioned earlier to ensure changes are saved immediately.

3. Confirmation prompt:

When using the `copy running-config startup-config` or `write memory` command, some older router models may prompt you to confirm the operation with a message like this:

Arduino
Destination filename [startup-config]?

You can simply press Enter to accept the default filename (startup-config) and proceed with the save.

4. Backup configurations:

It’s essential to regularly back up your router configurations to prevent any loss of critical settings. In addition to the auto-save feature, create manual backups and save them to a secure location, such as a TFTP server or a local file system.

5. Compare configurations:

Cisco routers also offer the capability to compare the running configuration with the startup configuration or a saved backup. This is useful to check for any discrepancies before saving the configuration or during troubleshooting. Use the following command to perform a comparison:

bash
Router# show archive config differences

This command will show you the differences between the current running configuration and the last saved startup configuration.

Remember that saving configurations is an essential aspect of managing network devices. Always exercise caution when making configuration changes and ensure you have a backup in case of unexpected issues.

let’s summarize the steps to save the configuration on a Cisco router, including the additional tips, in a table format:

StepCommandDescription
1enableEnter privileged EXEC mode.
2show running-config(Optional) View the current running configuration.
3copy running-config startup-configSave the running configuration to the startup configuration (NVRAM).
or
write memory(Short form) Save the running configuration to the startup configuration (NVRAM).
or
wr(Shortest form) Save the running configuration to the startup configuration (NVRAM).
4show startup-configVerify the saved configuration by displaying the contents of the startup configuration.
5copy running-config tftp:(Optional) Copy the running configuration to a TFTP server for backup or transfer purposes.
(Enter TFTP server IP and filename)
6Regular BackupsManually backup configurations periodically to a secure location.
7Compare ConfigurationsUse show archive config differences to compare running and saved configurations.

Please note that steps 2 and 5 are optional. Step 2 is to view the current running configuration, and Step 5 is for copying the configuration to a TFTP server.

Always remember to exercise caution while making configuration changes and perform regular backups to avoid any loss of critical settings.

cisco save config

Leave a Comment