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. Sean Park
    December 17th, 2011

    Thanks alot!

  2. mayank
    December 17th, 2011

    thanx 4 such a wonderful xplaination…..

  3. Jamalos
    December 18th, 2011

    Simple and clear, great job

  4. Sunny
    December 19th, 2011

    Wonderful tutorial, i love it.Thanks a lot 9tut for your tireless efforts to put more and more matriels every once in awhile.

  5. bakki
    December 20th, 2011

    really awesome…thanks 9tut

  6. brijessh
    December 22nd, 2011

    it made me more clear than richard’book….thanks GURU

  7. chyangba
    December 23rd, 2011

    wow !! This is simply the best explanation with great pictorial example

  8. Moshe
    December 24th, 2011

    Great Stuff.. Please add more… Great Job…

  9. Domi
    December 28th, 2011

    Extremely helpful.

  10. Thomas
    December 28th, 2011

    You should learn cisco how to prepare learning materials with all useful information in few lines. I’m sick of their course materials which are like elementary books for idiots.

  11. Rigan
    December 28th, 2011

    Easy to learning …Thanks //!

  12. Ash Eskender
    December 28th, 2011

    Extremely helpful.

  13. suresh
    January 6th, 2012

    fantastic …really very very illustrative…

  14. Bhavesh
    January 7th, 2012

    Very much Helpful..Doing grt job..God bless you..:)

  15. Naff
    January 9th, 2012

    Thanks 9tut, this really helps. urging all to keep this site going by giving some donation!! :-)

  16. Maher
    January 9th, 2012

    Thank you for a great job……………………;-)

  17. Rasta
    January 10th, 2012

    This is Owesome Information ..

  18. Deebokchopra
    January 10th, 2012

    This is nice! Thank you for this..

  19. chuckasomas
    January 18th, 2012

    9tut you rock!!!

  20. Raunak
    January 19th, 2012

    Hi all,

    Please can anyone send me the latest ccna dumps on my email raunakshah@yahoo.com
    I am taking the exam on 27th.

    Thanks

  21. John
    January 20th, 2012

    Send me the latest Ccna dumps exam is in two weeks hassany2929@hotmail.com

  22. Vishnu
    January 22nd, 2012

    Thanks a Lot for the wonderful explanation…

  23. sajid
    January 23rd, 2012

    very helpful

  24. sajid
    January 23rd, 2012

    kindly send me the latest course outline of ccna

  25. Z d
    January 28th, 2012

    Nice work and thanks…

  26. Anuj Jain
    February 1st, 2012

    Very much helpful.Thanx a lot.

    I need CCNA latest dump. can any body help anuj18feb@gmail.com

  27. Viji
    February 7th, 2012

    Thanks a lot for making it so simple.

  28. Nazir
    February 7th, 2012

    hey plz some budy send me latest ccna dumps i have to clear my certification. My E-mail id is nazir_kda@yahoo.com

  29. pk
    February 8th, 2012

    awesome!9tut simply the best!

  30. karthik
    February 15th, 2012

    thanks for sharing the information with us

  31. Srinivas
    February 20th, 2012

    Thanks a lot for sharing information…

  32. Sujay
    February 23rd, 2012

    Thank you so much, it is easier to understand compared to other materials

  33. shekhu_bd
    February 27th, 2012

    9tut is the best. no training needed if we have 9tut.

  34. ss
    February 28th, 2012

    Simple and clear

  35. steve
    February 29th, 2012

    thanks a lot! the best summary ever had!

  36. Mahbub
    March 1st, 2012

    This is the BEST explanation that it could ever be!!! Thanks again.
    Please can anyone send me the latest ccna dumps or pass4sure to my email mahbub9803@yahoo.com. I am taking the exam on March 15th. Thanks a lot.

  37. Kavita
    March 5th, 2012

    thank u soch dear….. thnaks

  38. allaboutccna
    March 5th, 2012

    Excellent resource, very easy to understand! Never knew this was actually easy to understand! :)

  39. letty
    March 8th, 2012

    thanx, very helpful

  40. gucciprod
    March 9th, 2012

    THX A LOT

  41. Arafat
    March 10th, 2012

    Nice description. very helpful in short time.

  42. Bilal
    March 13th, 2012

    very well explained

  43. Anonymous
    March 13th, 2012

    thankx bro great explaination

  44. Prashanth
    March 15th, 2012

    great !!!!!!!!! Thanks a lot for the preparation.

  45. Bradonfly
    March 23rd, 2012

    Nice work guys……better reading boring 1000 pages book

  46. MzeeNyani
    March 23rd, 2012

    I understood it better

  47. abhi
    March 25th, 2012

    Thanks guys , I have found this Site in a Very interesting time of my life…,Gearing up for my Cisco.

  48. waseem
    April 4th, 2012

    very very niceeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

  49. AnonymousSD
    April 13th, 2012

    Great job explaining and making it easier for us to understand than the stuff that we read sometimes in cisco press books. You’re truly a heaven sent. God Bless!!

  50. moh
    April 14th, 2012

    Ammazing bud

Comment pages
1 2 3 4 1013
Add a Comment