Cisco
Recover a lost enable password on Catalyst 9200/9300/9400/9500/9600 switches over the console port using ROMMON and the startup-config bypass.
This guide provides step-by-step instructions for resetting lost or forgotten administrative passwords on enterprise networking hardware. Follow the procedure below carefully to regain access while preserving your device configuration.
Before proceeding with password recovery, ensure you have a console cable, terminal emulation software configured to 9600 baud, and physical access to the device.
Connect your terminal cable to the console port of the device and open your serial terminal session.
Power cycle the hardware and issue a Break key sequence during initial system startup to enter ROMMON mode.
Bypass startup configuration loading, boot into system software, set your new credentials, and save changes back to non-volatile memory.
Catalyst 9000 series switches run IOS-XE. A lost enable (privileged EXEC) password is recovered by interrupting the boot into ROMMON, telling the switch to ignore the saved startup configuration, then copying that configuration back and setting a new password. The saved configuration is preserved.
rommon 1 > prompt.switch: SWITCH_IGNORE_STARTUP_CFG=1switch: boot flash:packages.confenable) — no password is required at this point — then merge the saved configuration back into the running one:Switch# copy startup-config running-configSwitch(config)# enable secret <new-password>Switch(config)# no system ignore startupconfig (or set SWITCH_IGNORE_STARTUP_CFG=0 in ROMMON)Switch(config)# endSwitch# write memorySwitch# reloadConfirm the console terminal is at 9600 8-N-1 and that you are on the correct port. On stacked or dual-supervisor systems, always recover on the supervisor that will be active.
See also the Catalyst 3650/3850 guide — the procedure is identical.