Compare a running config with the startup config
Use this tool to compare the running and startup (in NVRAM) configs of a Cisco router. If changes were made to the configuration but not committed to non-volatile memory, you can detect differences between the two configurations. Always compare running and startup configs before rebooting a router.
- Confirm that your access list does not block SNMP queries.
- Click , and then specify the host nameor IP address of the device.
- Select a community string or SNMP version 3 credentials.
- To test the credentials, click .
- Click .
- If prompted, store the credentials you specified in the shared credentials database.
- Click .
Cisco routers stop responding to SNMP queries while they are requesting a file from a TFTP Server. They also stop responding to SNMP while sending files to a TFTP Server. If you instruct a Cisco router to upload or download a new configuration file and it cannot comply, the action is attempted numerous times – repeating up to a minute. During this time, the router stops responding to SNMP queries. You must wait until the previous router action times out, and then try again.
After downloading both configurations, the comparison is displayed in the Config Editor or Viewer.
To display the contents of NVRAM (if present and valid) or to show the configuration file pointed to by the CONFIG_FILE environment variable, use the show startup-config EXEC command.show startup-config
This command has no arguments or keywords.
NVRAM stores the configuration information on the network server in text form as configuration commands. For all platforms except the Cisco 7000 family, the show startup-config command shows the version number of the software used when you last executed the copy running-config startup-config command.
For the Cisco 7000 family, the show startup-config command shows the configuration file specified by the CONFIG_FILE environment variable. The Cisco IOS software informs you whether the displayed configuration is a complete configuration or a distilled version. A distilled configuration is one that does not contain access lists. If the CONFIG_FILE environment variable does not exist or is not valid, the software displays the NVRAM configuration (if it is a valid, complete configuration).
The following sample output from the show startup-config command displays the contents of NVRAM:Router# show startup-config Using 5057 out of 32768 bytes ! version 10.3 ! enable-password xxxx service pad ! boot system dross-system 172.16.13.111 boot system dross-system 172.16.1.111 ! exception dump 172.16.13.111 ! no ip ipname-lookup ! decnet routing 13.1 decnet node-type area decnet max-address 1023 ! interface Ethernet 0 ip address 172.16.1.1 255.255.255.0 ip helper-address 172.30.1.0 ip accounting ip gdp decnet cost 3 ! ip domain-name CISCO.COM ip name-server 255.255.255.255 ! end
The following is partial sample output from the show startup-config command when the configuration file has been compressed:Router# show startup-config Using 21542 out of 65536 bytes, uncompressed size = 142085 bytes ! version 9.22 service compress-config ! hostname rose ! boot system flash gs7-k.sthormod_clean boot system rom
Cisco Router Configuration Files, startup-config, running-config, Start-up Configuration file, Running Configuration file
Cisco Router configuration files hold the commands to configure the router. There are two main copies of Cisco Router configuration file. The configuration file where router stores the configuration changes when the router is up and running is called the "running-config" file. The running configuration file stores the configuration changes made while the router is up and running. The "running-config" file is stored in RAM. The "running-config" file is NOT persistent, which means that the changes made in the "running-config" while the router is running are not retained after a reboot. You can back up, or save, "running-config" file to either NVRAM or a TFTP (Trivial File Transfer Protocol) server.
A persistent copy of Cisco Router configuration file is called as "startup-config" file. The "startup-config" file is kept in NVRAM and the contents of the "startup-config" file are retained after a reboot. To save the changes of "running-config" file to "startup-config", run the following IOS command.OmniSecu03# copy running-config startup-config
The "running-config" can also be saved in a TFTP (Trivial File Transfer Protocol) server if you have a TFTP (Trivial File Transfer Protocol) server in your network. To save "running-config" file to a TFTP (Trivial File Transfer Protocol) server, run the following IOS command.OmniSecu03# copy running-config tftp
Remember, "startup-config" is a persistent copy of configuration file, which is kept normally in NVRAM.
Do you have any suggestions?
CIsco devices store commands in two configuration files:
- startup configuration
- running configuration
Immediately after you type a command in the global configuration mode, it will be stored in the running configuration. A running configuration resides in a device’s RAM, so if a device loses power, all configured commands will be lost.
To avoid this scenario, you need to copy your current configuration into the startup configuration. A startup configuration is stored in the nonvolatile memory of a device, which means that all configuration changes are saved even if the device loses power.
To copy your running configuration into the startup configuration you need to type the command copy running-configuration startup-configuration.
Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book.
We recommend the Cisco CCNA Gold Bootcamp as your main CCNA training course. It’s the highest rated Cisco course online with an average rating of 4.8 from over 30,000 public reviews and is the gold standard in CCNA training:
A running configuration resides in a device's RAM, so if a device loses power, all configured commands will be lost. A startup configuration is stored in the nonvolatile memory of a device, which means that all configuration changes are saved even if the device loses power.
Click to see full answer
Moreover, what is the startup configuration file?
A persistent copy of Cisco Router configuration file is called as "startup-config" file. The "startup-config" file is kept in NVRAM and the contents of the "startup-config" file are retained after a reboot.
One may also ask, what does the show startup config command display? show startup-config. To display the contents of NVRAM (if present and valid) or to show the configuration file pointed to by the CONFIG_FILE environment variable, use the show startup-config EXEC command.
Hereof, where is startup config stored?
Location of Configuration FilesThe running configuration is stored in RAM. On all platforms except the Class A Flash file system platforms, the startup configuration is stored in nonvolatile random-access memory (NVRAM).
What is copy running config startup config?
Copy Running-Config Startup-Config (also known as, Copy-Run-Start) – This Saves the current running configuration to the startup configuration in the NVRAM. This cisco command is necessary to save your running configuration so that when the router reloads, it loads the up the right configuration file.
Before you redeploy an old router that you have previously used for some other purpose, it is a good idea to completely erase the old configuration. This ensures that the router starts with a clean configuration. However, if you did this on a production router, it would wipe out the configuration and leave it with all of its interfaces down. Fortunately, completely deleting your configuration requires two steps: erasing the startup configuration file, followed by a reload.
After you erase your startup configuration file and reload the router, it will enter its configuration dialog mode. Most experienced Cisco engineers prefer to skip this mode:--- System Configuration Dialog --- Would you like to enter the initial configuration dialog? [yes/no]: Would you like to terminate autoinstall? [yes]: Press RETURN to get started! Router>
At this point, the router’s configuration has been returned to the factory defaults:Router# Building configuration... Current configuration : 431 bytes ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname Router ! ! ip subnet-zero ! ! ! ! interface Ethernet0 no ip address shutdown ! interface Ethernet1 no ip address shutdown ! interface Serial0 no ip address shutdown ! interface Serial1 no ip address shutdown ! ip classless ip http server ip pim bidir-enable ! ! line con 0 line aux 0 line vty 0 4 ! end Router#
You can now safely reconfigure the router for its new function. We note in passing that the factory defaults are slightly different, depending on the level of IOS you are running and the hardware installed in the router.
If you accidentally erase the startup configuration file, you can still recover if the router has not yet been reloaded. Simply copy the running configuration back to the startup configuration, and the router will be returned to normal:Router1# startup-config is not present Router1# Building configuration... [OK] Router1# version 12.2 service timestamps debug datetime msec service timestamps log datetime localtime service password-encryption ! hostname Router1 <removed for brevity>
But, if the router’s configuration is erased and the router is reloaded, it will either need to be reconfigured manually from memory, or preferably, from a backup copy, as in Recipe 1.2.
You will also be interested:
- Ark survival boss
- Black mirror trim
- P0171 code subaru forester
- Situated thesaurus
- Premium crepe paper
- 03 rev 800
- Single panel curtain
- Saab convertible 1997