Home > Cisco Router Boot Sequence Tutorial

Cisco Router Boot Sequence Tutorial

December 16th, 2011 Go to comments

In this article we will learn about the main components of a Cisco router and how the boot process takes place.

Types of memory

Generally Cisco routers (and switches) contain four types of memory:

Read-Only Memory (ROM): ROM stores the router’s bootstrap startup program, operating system software, and power-on diagnostic test programs (POST).

Flash Memory: Generally referred to simply as “flash”, the IOS images are held here. Flash is erasable and reprogrammable ROM. Flash memory content is retained by the router on reload.

Random-Access Memory (RAM): Stores operational information such as routing tables and the running configuration file. RAM contents are lost when the router is powered down or reloaded. By default, routers look here first for an Internetwork Operating System (IOS) file during boot.

Non-volatile RAM (NVRAM): NVRAM holds the router’s startup configuration file. NVRAM contents are not lost when the router is powered down or reloaded.

Some comparisons to help you remember easier:

+ RAM is a volatile memory so contents are lost on reload, where NVRAM and Flash contents are not.
+ NVRAM holds the startup configuration file, where RAM holds the running configuration file.
+ ROM contains a bootstrap program called ROM Monitor (or ROMmon). When a router is powered on, the bootstrap runs a hardware diagnostic called POST (Power-On Self Test).

Router boot process

The following details the router boot process:
1. The router is powered on.
2. The router first runs Power-On Self Test (POST)
3. The bootstrap checks the Configuration Register value to specify where to load the IOS. By default (the default value of Configuration Register is 2102, in hexadecimal), the router first looks for “boot system” commands in startup-config file. If it finds these commands, it will run boot system commands in order they appear in startup-config to locate the IOS. If not, the IOS image is loaded from Flash . If the IOS is not found in Flash, the bootstrap can try to load the IOS from TFTP server or from ROM (mini-IOS).
4. After the IOS is found, it is loaded into RAM.
5. The IOS attempts to load the configuration file (startup-config) from NVRAM to RAM. If the startup-config is not found in NVRAM, the IOS attempts to load a configuration file from TFTP. If no TFTP server responds, the router enters Setup Mode (Initial Configuration Mode).

Cisco_Boot_Sequence.jpg

And this is the process we can see on our screen when the router is turned on:

Cisco_router_boot_process.jpg

In short, when powered on the router needs to do:

1. Run POST to check hardware
2. Search for a valid IOS (the Operating System of the router)
3. Search for a configuration file (all the configurations applied to this router)

Specify how much RAM, NVRAM and Flash of a router

Also, from the information shown above, we can learn some information about router’s model, RAM, Flash, NVRAM memories as shown below:

RAM_ROM_Flash_memory.jpg

Note: The “show version” command also gives us this information.

All the above information is straight-forwarding except the information of RAM. In some series of routers, the RAM information is displayed by 2 parameters (in this case 60416K/5120K). The first parameter indicates how much RAM is in the router while the second parameter (5120K) indicates how much DRAM is being used for Packet memory. Packet memory is used for buffering packets.

So, from the output above we can learn:

Amount of RAM: 60416 + 5120 = 65536KB / 1024 = 64MB
Amount of NVRAM: 239KB
Amount of Flash: 62720KB

Comments (179) Comments
Comment pages
1 2 3 4 1013
  1. Walid Sabry
    September 17th, 2013

    Great, thank..

  2. moh
    September 21st, 2013

    Thanks for all great info

  3. murtonfor
    September 21st, 2013

    thanks alot

  4. Anonymous
    September 24th, 2013

    Great!

  5. Ahmed Youssef
    September 25th, 2013

    Thanks

  6. rinaclete
    November 12th, 2013

    thanks for this because its very helpful .. :)

  7. rinaclete
    November 12th, 2013

    thanks :p

  8. rhenlaurel
    November 14th, 2013

    give some about that

  9. Chariel Ko
    November 25th, 2013

    Thanks alot ^_^

  10. Raj
    December 15th, 2013

    When RAM is a volatile memory, contents are lost on reloadBy default, why routers look here first for an Internetwork Operating System (IOS) file during boot ?

  11. Amri
    December 18th, 2013

    thanks alot very simple explanation to understand

  12. ADEEL HAMID
    December 31st, 2013

    ITS REALLY HELPFUL. THANKS FOR SUCH NICE AND COMPREHENSIVE TOPIC IN DETAIL

  13. Suyog Taksande
    January 22nd, 2014

    Thanks For such a nice explanation. :)

  14. Dipanu
    January 22nd, 2014

    The flowchart is helpful

  15. Anonymous
    July 5th, 2014

    Wow..Thanks for sharing

  16. hero_mind
    July 21st, 2014

    sooooooooooooooooo good thanks

  17. Sandy6933
    August 8th, 2014

    Thanks for the useful post!

    Keep Writing :)

  18. Anonymous
    August 14th, 2014

    Thanks for the wonderfull explanation.
    Please keep posting like this always !!!!

  19. Faisal
    November 26th, 2014

    Easy explanation.

  20. Tar
    December 5th, 2014

    Raj, because ios image load from flash to RAM.

  21. ashish yadav
    December 27th, 2014

    thanks so much……

  22. abrar
    January 8th, 2015

    thanks

  23. Shashank
    January 9th, 2015

    Thanks for the wonderfull explanation.
    Please keep posting like this always !!!!

  24. longaar
    January 31st, 2015

    thanks alot

  25. Shreedhar k
    February 20th, 2015

    U explained things neatly but i have one doubt
    Where is loading a mini IOS?

  26. 9tut
    February 21st, 2015

    @Shreedhar k: Mini-IOS contains only IP code that allows you to load IOS from other resources such as TFTP Server. It is stored in ROM.

  27. mansoor shakir
    February 24th, 2015

    thank you very much for this easy and simple and understanding topic

  28. Khalid
    March 15th, 2015

    Concise and clear, thank you.

  29. Ahmed
    March 18th, 2015

    Very Good

Comment pages
1 2 3 4 1013
Add a Comment