Network Kings, India’s Leading IT Career Training Academy

In this comprehensive blog, we will dive into the numerous types of memory observed in Cisco devices. Understanding the different memory types is critical for network administrators and engineers who work with various Cisco devices. We will also discover the in-depth reason and the functionality of each type of memory in Cisco devices, in addition to their precise use cases. By the end of this article, you’ll have a clear knowledge of the different types of memory in Cisco devices and the way they make a contribution to the overall performance of Cisco devices. So, read this blog till the end!
There are in total four kinds of memories in Cisco devices, namely-
Flash memory is a non-volatile memory which means that it can retain the stored information even if there is a sudden power loss. It is the memory where the Cisco operating system i.e., Cisco IOS software images is stored. The IOS image is the operating system that runs on Cisco devices and provides the functionality to manage the network and perform various tasks. It is also called Erasable Programmable Router-only Memory (EPROM). Data stored in flash can be modified by flashing the chip but when the router is running, flash memory is set to read-only mode.
It stands for read-only memory and is similar to the BIOS chip on our computers. ROM is the memory using which the device proceeds with the boot process. ROM contains essential firmware and bootstrap code required to initialize the device during the boot process. It is a non-volatile memory and cannot be modified.
It stores programs like-
It is known as Non-Volatile Random Access Memory (NVRAM) and is used to store the startup configuration of the device. It is a permanent memory and does not lose its data even if there is a power loss. Whenever a device is booted up, it looks for the configuration stored in NVRAM. Whenever the changes are made or a new config is done on a device, it should be saved in NVRAM i.e., to startup Configuration. It stores configurations like IP address, router name, ACL, NAT config, etc.
NVRAM can be seen using the R#show startup-config command.
Random Access Memory (RAM) is a volatile memory. It is not a permanent memory, i.e., whenever the router goes down, the data stored in RAM is lost.
It is divided into two types: –
RAM can be seen using the R#show running-config command.
Currently running configuration and startup configuration both look the same because I have not configured anything in the router.
Now let us change the hostname from nwkings to getthejobwithnwkings and see what happens-
Let us now check the running configuration: –
version 15.2
Let’s check our startup configuration-

version 15.2

So, the hostname is still in RAM and to save it into NVRAM, we need to use the #write command.

Whenever we power on the router, it performs POST, Power-ON Self Test, which check all the hardware component. The device checks the ROM and performs the bootstrap program and checks from where it has to load the Cisco IOS images. Images are generally stored in Flash memory but it may also be loaded using TFTP servers. If IOS is not found on both, it loads a mini IOS program from ROM itself and takes the necessary steps to recover the IOS images.
Once the IOS image is found, it gets loaded from the flash memory/TFTP server to RAM.
The configuration from NVRAM is loaded into the RAM i.e., startup configurations are initiated.
Further changes are saved in RAM itself until they are saved to NVRAM.
The initial boot looks something like this. Further, it depends on the IOS version.

