09-03-2008 08:51 AM - edited 03-06-2019 01:09 AM
Hi,
I am planning to upgrade the IOS in 2950 for the same i have verified the flash in my flash showing two IOS. But its booted with one IOS with out boot system command .
How switch will choose the IOS means based on which parameters??
SW#sh flash
Directory of flash:/
2 -rwx 1674921 Apr 30 2001 15:09:51 c2950-c3h2s-mz.120-5.3.WC.1.bin
4 drwx 10176 Jan 01 1970 00:00:19 html
5 -rwx 660 Mar 31 1993 04:34:36 vlan.dat
165 -rwx 284 Jan 01 1970 00:17:26 env_vars
166 -rwx 2774747 Mar 07 2003 20:45:37 c2950-i6q4l2-mz.121-12c.EA1.bin
167 -rwx 4812 May 28 1993 18:32:45 config.text
168 -rwx 47 May 28 1993 18:32:45 private-config.text
Regards
sateesh
09-03-2008 09:53 AM
Whichever it finds first in the flash:
Per your output, it will boot from c2950-c3h2s-mz.120-5.3.WC.1.bin as its listed first.
Don't let the switch pick from the list and use the boot system flash command in the configuration. Any reason for not doing so?
__
Edison.
09-03-2008 10:09 AM
Hi Sateesh
Without a boot statement, by default the switch/router would pick the first file in the flash to boot the device. If the first file is not a valid IOS image bin file, the device would drop into ROMMON or boot mode depending on the platform.
HTH~
Vaibhav
09-03-2008 10:14 AM
Hi,
Thanks for info..
But it took second file..how come??
As per the flash IOs seems to be ok and suppose to take first one...right??
Regards
sateesh
09-03-2008 11:38 AM
Yes, it's supposed to take the first one. Please post the running-config along with the show boot output.
__
Edison.
09-03-2008 11:47 AM
Hi,
On a CCIE blog, there was a similar question for a 3750 switch. I'm sure the same logic applies here. Enter the command show boot on your switch. You should see a BOOT path-list entry. This probably will have both IOS files listed. They had used the "archive download-sw" command to add the new IOS to flash and found that one of the default settings is; The BOOT environment variable is changed to point to the new software image on the flash: file system.
John
09-03-2008 12:11 PM
Hi,
pls find below the required details..
sh run attached...
SwW#sh boot
BOOT path-list: flash:c2950-i6q4l2-mz.121-12c.EA1.bin
Config file: flash:config.text
Private Config file: flash:private-config.text
Enable Break: no
Manual Boot: no
HELPER path-list:
NVRAM/Config file
buffer size: 32768
09-03-2008 02:54 PM
Your boot statement contains the file so a 'search' in the flash: system isn't made.
BOOT path-list: flash:c2950-i6q4l2-mz.121-12c.EA1.bin
Perhaps it's not showing in the running configuration because the set boot command was used instead of the boot system command.
See:
HTH,
__
Edison.
Please rate helpful posts
09-04-2008 12:42 AM
1st one is help to boot ur router...u can delete the flash and then install new ios in your router
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide