I recently acquired a used Cisco Catalyst 3560 and I am trying to factory reset it. When I enter the recovery process (by holding MODE), I get stuck in this loop at the "switch: " prompt.
How do I resolve this issue?
Network Engineering Stack Exchange is a question and answer site for network engineers. It only takes a minute to sign up.Sign up to join this community
Sounds like a nice job of a botched content ot the boot variable - possibly the config file variable. The
switch: prompt you see there is called the ROMMON prompt. ROMMON is a bit like the BIOS of a PC, but a lot simpler.
Your switch seems to fall back into bootloader/rommon continously because something after the bootloader phase is failing. The most common cause for that is: IOS Software image not readable/loadable at the location give in the boot directive/boot variable.
... I suggest you proceed as follows:
flash_initto make the flash filesystem availabe/readable
set(no parameters or options) to see the environment variables during the rommon/bootloader stage. It will tell you which file is being searched as IOS image to boot, or if there is a directive to read a particular config file (which might be missing). Please note: the variables here (e.g. IP address, Mask, Gateway to boot via TFTP) are only meaningful for the boot process, they have nothing to do with the configuration of the switch when it will eventually run and load its config file.
dir <filesytem>(probably as
dir flash:) to see if that or another IOS image file is available somewhere in the flash filesystem.
unset <variable>commands to manipulate variables as you see fit, or...
boot flash:/<iosimagefile>to force the loading of the given IOS image file1
Then, when booted, make sure that in
boot system flash flash:/iosimagefilename directive points to a file that actually exists - or is blank. An empty boot file directive usually works, because the switch will usually attempt to boot from the first available IOS-image on flash.