1. Copy the new IOS-Image in the flash memory
Switch#copy usbflash0:c2960x-universalk9-mz.150-2.EX4.bin flash: Destination filename [c2960x-universalk9-mz.150-2.EX4.bin]? Copy in progress...CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 18228096 bytes copied in 278.698 secs (65404 bytes/sec)
2. Erase the old IOS-Image and the old configuration from the flash memory
Switch#delete /recursive /force flash:/c2960x-universalk9-mz.150-2.EX3 Switch#delete flash:/vlan.dat Delete flash:/vlan.dat? [confirm] Switch#
4. Erase the running and startup config
Switch#write erase Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] [OK] Erase of nvram: complete
3. Set the new default IOS-Image to boot system variable
I know that boot system take the IOS were are avaliable in the flash memory for booting the system by default. To be sure that the correct IOS-Image version is booting, I like to check and set this configuration with the boot system command.
Switch#show boot BOOT path-list : flash:/c2960x-universalk9-mz.150-2.EX3/c2960x-universalk9-mz.150-2.EX3.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : yes Manual Boot : no HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled)
Switch(config)#boot system flash:c2960x-universalk9-mz.150-2.EX4.bin Switch# Switch#show boot BOOT path-list : flash:c2960x-universalk9-mz.150-2.EX4.bin Config file : flash:/config.text Private Config file : flash:/private-config.text Enable Break : yes Manual Boot : no HELPER path-list : Auto upgrade : yes Auto upgrade path : NVRAM/Config file buffer size: 524288 Timeout for Config Download: 0 seconds Config Download via DHCP: disabled (next boot: disabled)
4. Save the new config
Switch#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Switch#
5. Reboot
Switch#reload