Skip navigation
Cisco Learning Home > CCENT/CCNA R&S Study Group > Discussions
This Question is Answered 1 Correct Answer available (4 pts) 2 Helpful Answers available (2 pts)
46874 Views 20 Replies Latest reply: Mar 17, 2014 10:04 AM by Lukas RSS 1 2 Previous Next

Currently Being Moderated

Router Boot Sequence ?

Mar 22, 2013 2:22 PM

gopal 19 posts since
Aug 19, 2010

Hi guys,

can you explain the Router boot sequence in detail ?

where is the start-up config, running config, mini IOS, IOS located ?

 

Thank you

gopal

  • Hardik 92 posts since
    Feb 1, 2009
    Currently Being Moderated
    1. Sep 10, 2010 11:11 AM (in response to gopal)
    Re: Router Boot Sequence ?

    Hi Gopal,

     

    Here i will try my best to tell you on boot sequence,

     

    first of all any router to start working will require operating system, in case of CISCO router we call its operating system as IOS, which is stored in Flash drive bydefaults comes with any router. Second thing it requires is startup-config which is stored in NVRAM, built-in in cisco router, which indicates router what function it has to run, and the third one is running-config which it require in real time basis stored in RAM memory of Router, which is same as our Personal computer's RAM. Now keeping all this fact in mind,

     

    Now boot sequence would be,

     

    1. On power on cisco router first will perform the POST( Power on self test).  The POST tests the hardware to verify that all components of the device are operational and present. For example, the POST checks for the different interfaces on the router. The POST is stored in and run from ROM (read-only memory).

    2. The bootstrap looks for and loads the Cisco IOS software. The bootstrap is a program in ROM that is used to execute programs. The bootstrap program is responsible for finding where each IOS program is located and then loading the file. By default, the IOS software is loaded from flash memory in all Cisco routers.

    3. The IOS software looks for a valid configuration file stored in NVRAM. which is called as startup-config.

    4. If a startup-config file is in NVRAM, the router will load and run this file. The router is now operational. If a startup-config file is not in NVRAM, the router will start the setup-mode configuration upon bootup.

    5. Any further modification on running router will be stored on RAM, where you need to manually execute command copy running-config startup-config to make your current configuration as a startup-config, every time you boot your router.

     

     

     

    Hope This will help you out.

     

     

    Regards,

    Hardik

  • Zohaib 52 posts since
    Feb 15, 2010
    Currently Being Moderated
    2. Sep 10, 2010 11:47 AM (in response to gopal)
    Re: Router Boot Sequence ?

    Hi Gopal,

     

    Hardick has explained most of the things but IOS loading depends upon Configuration Register value which is 0x2102 by default which means that by default load IOS from flash but we can load it from TFTP server as well depending upon boot sytem global configuration commands

     

    As far as Mini IOS is concerned that was used in old 2500 series routers not in new ISRs and was kept in ROM.

     

    For simplicity i am not mentioning Boot Field process now.

     


    regards

     

    Zohaib

  • Hardik 92 posts since
    Feb 1, 2009
    Currently Being Moderated
    3. Sep 11, 2010 1:00 AM (in response to Zohaib)
    Re: Router Boot Sequence ?

    Hi Zohaib,

     

    Hey thanks for your comments, i really missed that point. actually that is the bigboss who decides the boot sequence.

     

     

     

    Regards,

    Hardik

  • Matt 9 posts since
    Nov 30, 2011
    Currently Being Moderated
    5. Nov 30, 2011 5:40 AM (in response to Hardik)
    Re: Router Boot Sequence ?

    Just an additional question to add to this, the router boot sequence is set out as above and easily explained.  However....the switch boot sequence defines the first action as the boot loader being loaded from ROM then defines that it is the boot loader that preforms the POST, does this mean the sequence is different for switches or is there a mistake in course literature?

  • Ahmed 1 posts since
    Aug 1, 2011
    Currently Being Moderated
    6. Jul 14, 2012 11:02 AM (in response to Matt)
    Re: Router Boot Sequence ?

    hi , i want to ask a question

    =============

    i have a router cisco 7206

    i performed two commands as below:

    Bras#sh bootflash:

    -#- ED ----type---- --crc--- -seek-- nlen -length- ---------date/time--------- name

    1   .. image        31E6C0CD  80D9F8   28  7919992 Jan 1 2000 04:24:55 +03:00 c7200p-kboot-mz.124-4.XD.bin

     

    57615880 bytes available (7920120 bytes used)

    Bras#sh dis

    Bras#sh disk2:

    -#- --length-- -----date/time------ path

    1     37962496 Aug 04 2011 00:00:14 c7200p-advipservicesk9-mz.124-24.T4.bin

    3         3480 Jan 23 2001 04:04:10 accouting

    4            0 Aug 07 2011 17:43:24 backup

    5         9255 Jul 08 2012 08:44:14 backup/Bras-backup-198

    6         9308 Jul 10 2012 08:44:26 backup/Bras-backup-199

    7         9310 Jul 11 2012 08:25:44 backup/Bras-backup-200

    8         9310 Jul 11 2012 08:44:32 backup/Bras-backup-201

    9         9529 Jul 13 2012 08:44:44 backup/Bras-backup-202

    12        9256 Jul 04 2012 08:43:50 backup/Bras-backup-194

    13        9308 Jul 05 2012 21:08:48 backup/Bras-backup-195

    14        9308 Jul 07 2012 08:44:06 backup/Bras-backup-196

    15        9255 Jul 07 2012 19:12:32 backup/Bras-backup-197

    19        9529 Jul 14 2012 08:44:52 backup/Bras-backup-203

     

    218361856 bytes available (38096896 bytes used)

     

     

     

     

    my question is , does disk2 is considered as a flash which is didicated for loading the ios and sh bootflash is considered a rommon place which holds the bootstrap or bootloader ???

     

    i just want to fix my info and nail it down

     

     

    with my best regards

  • ajaykpat 6 posts since
    Feb 12, 2011
    Currently Being Moderated
    7. Aug 13, 2012 8:20 AM (in response to Ahmed)
    Re: Router Boot Sequence ?

    Hi Ahmed,

                         sh bootflash: ==> Shows the  bootloader file and is used during the intial bootup process.  Its small in size.

                         sh disk2:  ==> Shows the router IOS image file loadaed after the intial startup process completed . Its size is big compare to bootloader fiel.

     

    ajp

  • Currently Being Moderated
    8. Oct 20, 2012 2:31 PM (in response to Matt)
    Re: Router Boot Sequence ?

    Hi Matt,

     

    The boot process for Routers and switches are same.

     

    Harvey

  • Joe 1 posts since
    Feb 17, 2013
    Currently Being Moderated
    9. Feb 17, 2013 3:25 PM (in response to Hardik)
    Re: Router Boot Sequence ?

    Hi Hardik,

     

    I am studing for CCNA and during my practice exams I got the boot sequence question wrong by answering  POST -> Config -> IOS instead of POST -> IOS -> Config.  I can see from your post that I was wrong but I still do not understand this based on the boot process details.  In my reference material I see the following description which indicates that the config is read before the IOS is loaded:

     

    Assuming that there are no critical errors in the POST, the bootstrap checks the startup-config file in NVRAM for boot system commands. These commands may have been entered by the router admin to over ride the default behavior, perhaps to load a different IOS for test purposes.

     

    Assuming there are no boot system commands, the router loads the first valid IOS image it finds in flash memory.

     

    This clearly indicates that the startup-config is read BEFORE the IOS is loaded.  Perhaps it can be argued that the startup-config is not applied until after the IOS is loaded, but clearly it is looked for and found before the IOS is looked for.

     

    Can anyone explain this to me?

     

    Thanks,

    Joe

  • Marz 13 posts since
    Apr 12, 2013
    Currently Being Moderated
    10. Jun 2, 2013 8:49 AM (in response to Joe)
    Re: Router Boot Sequence ?

    This maybe a little late, but I'll just post my reply about the Router boot sequence anyway, and be corrected if I'm wrong.

    When  the router boots up, the bootstrap program is run. This program will then run POST (Power On Self Test). When everything is okay, it will then check the Configuration Register Value (0x2102 which refers to the FlashMemory by default) to determine where the IOS will be loaded from. Once the IOS has been loaded (decompressed to RAM), it will then look into NVRAM for the startup-config. If a startup-config is not found, the router will automatically go to setup mode.

    If what I recall is correct - from Todd Lammle's book - a non ISR (Integrated Services Router) will broadcast out all its active interfaces looking for a TFTP (Trivial File Transfer Protocol) Server to ask for the startup-config IF one is not found in NVRAM.

  • Arion 35 posts since
    Mar 26, 2013
    Currently Being Moderated
    11. Jun 6, 2013 9:04 PM (in response to gopal)
    Re: Router Boot Sequence ?

    the sequence is:

    Power on self test (post)

    Load and run bootstrap code

    Find IOS software

    Load IOS software

    Find Configuration file

    Load Configuration file

    Run

     

    So the short version is: POST --> Boostrap --> IOS --> Config --> Run

     

    PBICR (pretty boys invent cars for racing) ;-) whatever works right

  • Arion 35 posts since
    Mar 26, 2013
    Currently Being Moderated
    12. Jun 6, 2013 9:17 PM (in response to gopal)
    Re: Router Boot Sequence ?

    In my experience the investment in the Cisco study materials from Cisco press or your preferred source are a wise use of funds available. (some used book stores carry them from time to time)

     

    If you are hung up on the sequence go to You Tube and search Cisco Router Boot Sequence...there are a few videos there on the topic.

  • Arion 35 posts since
    Mar 26, 2013
    Currently Being Moderated
    13. Jun 6, 2013 10:35 PM (in response to gopal)
    Re: Router Boot Sequence ?

    check this link...has correct answer and additional info that is helpful

     

    https://learningnetwork.cisco.com/message/296924#296924

  • Raj 2 posts since
    Sep 27, 2013
    Currently Being Moderated
    14. Sep 27, 2013 7:04 PM (in response to gopal)
    Re: Router Boot Sequence ?

    Hey Guys, i m bit confused abt this question.

     

    "During normal operation, from which loaction most Cisco swithces and routers run the IOS?"

    Options are:

    RAM

    Flash

    NVRAM

    Disk Drive

     

    Please help me with quiz. Thanks alot

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)