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. Kashyap
    April 14th, 2012

    Very very easy to understand thanks…..best site ever…

  2. khushboo
    April 15th, 2012

    hey can anyone send me the latest dumps,i have my CCNA exam on 2 may 2012.you can mail me on
    khushbooghag@gmail.com

  3. Huzaif
    April 18th, 2012

    Best explanation for boot sequence.. thanks 9tut.com

  4. khallow
    April 19th, 2012

    extremely helpful….thanks

  5. Shallom
    April 26th, 2012

    Well Explained thank a million!!

  6. Monofonk
    April 27th, 2012

    Please send me the latest dumps, I will take the exam next month
    monofonk25@gmail.com

  7. Adnan
    April 29th, 2012

    good work guys

  8. Sweet
    May 1st, 2012

    Thank you for the super vivid explanation.

  9. Md. Ahabab Hossen
    May 3rd, 2012

    Thanks a lot for your good job. It is very easier to understand.It is very helpful for CCNA student.

  10. Isamah
    May 5th, 2012

    Thanks so much, i never knew that the IOS loads into the RAM, I used to think it runs from the flash memory. Kudos

  11. Ashik E sadatia
    May 13th, 2012

    want to be clear ON meaning and function of REGISTER 0×2102 & 0×2142 ……

  12. Neeraj Sofat
    May 13th, 2012

    Very easy to understand thanks…..best site ever

  13. Anonymous
    May 14th, 2012

    I love you 9tut……………..!

  14. Jafari
    May 16th, 2012

    Xallas and 9tut you guys are God sent, 9tut Please permit me……

    There is urgent need for Telecom/Network tech within Africa and Europe.
    Minimum qualification for scope of work: CCNA

    Kindly contact me at ralphinci@gmail.com with your Location(City, country) and contact details(skype preferrable)

    Thank you guys and best of luck in your career

  15. pelikan
    May 20th, 2012

    hi can anyone share the latest dump, im taking my ccna exam next week. thanks in advance. werner_ap@yahoo.com

  16. euegene
    May 28th, 2012

    Hi can any share latest dump have exam soon kago_eugene@yahoo.com

  17. Azad
    June 7th, 2012

    Hi All, am taking my ccna next month, can any one be kind enough to send the latest dump or pass4sure please? …. azad45@yahoo.co.uk

  18. LE site sur les autocuiseurs
    June 10th, 2012

    Hey, melodramatic execute !

  19. Shilp Goswami
    June 13th, 2012

    Simply excellent!!

  20. buddy
    June 24th, 2012

    This side is simply superb…no need for classes

  21. Anita
    July 2nd, 2012

    Hi All, I am going to give CCNA exam on coming Sunday, Can anyone send latest dump at anita.krajput@gmail.com

  22. vivek
    July 4th, 2012

    simply brilliant

  23. Yem Boty
    July 6th, 2012

    great, Thanks.

  24. luis
    July 7th, 2012

    ay que bueno ya le entendi bravo

  25. RAM
    July 7th, 2012

    For the RAM you mentioned that there are 2 parameters (in this case 60416K/5120K). The 60416k is the “available” RAM, while the 5120K is the RAM that is currently being used right?

  26. mrparab
    July 10th, 2012

    Good explanation indeed.Made my day.
    Thanks

  27. samuel
    July 12th, 2012

    Hey guys am looking for a job. I am almost through with my CCNA you can contact me on samuel.muiruri33@yahoo.com
    thnx

  28. kalinga
    July 13th, 2012

    Really useful.
    Thank you

  29. Anonymous
    July 17th, 2012

    @9tut
    In the last paragraph of this guide: “….(in this case 60416K/5120K). The first parameter indicates how much RAM is in the router….”
    Should it be “The first parameter indicates how much DRAM is in the router….”

    Is it DRAM?? If so then is this a correct way to think:
    RAM size = amount of DRAM + amount of DRAM being used for Packet memory ?
    I know DRAM = Dynamic RAM, but do we need to worry about the difference between DRAM & RAM??

  30. learner
    July 19th, 2012

    great description, excellent .. nice work.. thank you.. 9tut

  31. learner
    July 19th, 2012

    @RAM .. ryt

  32. Geo John
    August 3rd, 2012

    simple and clear

  33. Sasank Choudhury
    August 14th, 2012

    awesome explanation….thanks a lot 9tut………..

  34. sudheer
    August 18th, 2012

    nice…..thanks 9tut

  35. wazed
    August 20th, 2012

    Great way to make understand……….. thanks a lot.

  36. Shaxad
    August 31st, 2012

    Many Thanks 9tut.

  37. Jahnab Saikia
    September 5th, 2012

    Hi everyone..i m going to appear 4 my ccna xamz within 15 days…can anyone give me some guidance how to prepare 4 the xam..and plz post me the latest dumps in jahnabsk07@gmail.com

  38. Victor Tan
    September 5th, 2012

    Can anyone send the latest ccna dumps to tanhuiteck@gmail.com
    Thanks

  39. Sanjib Kumar Guru
    September 12th, 2012

    Hello frends, Please help me for my CCNA Exam with guidance and latest dumps through
    guru_sanjib@rediffmail.com

  40. saheed adebare
    September 12th, 2012

    GUD,CAN SOMEONE TELL ME ONE OF THE IT PROGRAMM THAT RELATE TO TELECOMMUNICATION,PLS SEN IT TO shdade@yahoo.com

  41. xallax
    September 12th, 2012

    @saheed adebare
    try here for voice
    http://www.voicetut.com
    and here for wireless
    http://www.wirelesstut.com

  42. kamal chaurasia
    September 23rd, 2012

    very nice explain thanks lot

  43. Ralph
    September 25th, 2012

    I’m taking the CCNA composite exam today at 11am… Wish me all the best guys…! :)

  44. Rics
    September 26th, 2012

    Why does the 7th line statement “By default, routers look here first for an Internetwork Operating System (IOS) file during boot.” of “Types of memory” paragraph is not reflected on the flowchart or diagram?

    I think the flowchart needs revision…

  45. Rics
    September 26th, 2012

    In which of the 4 memories does the configuration register located?

  46. Rics
    September 26th, 2012

    What is the essence of looking first in RAM for IOS during boot?
    From my understanding, RAM is initially blank during boot.

  47. Clutch
    October 2nd, 2012

    Thumbs UP!!!

  48. chen
    October 14th, 2012

    Isn’t startup-config file stored in the RAM? I dont see this in the diagram above. Good Job 9tut for providing valuable info. Thanks.

  49. chen
    October 14th, 2012

    RICS – my thought exactly- But if RAM is initially blank IOS is loaded from Flash and IOS is not found in flash – Try to locate IOS in TFTP, If is not found in TFTP Server it runs ROM again to start the same process to locate IOS. What are you views people?

  50. Prem Oliver
    October 18th, 2012

    Its Easy to understand…

Comment pages
Add a Comment