Cisco
Recover a lost enable password on Catalyst 3650 and 3850 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 3650 and 3850 run IOS-XE. Password recovery uses ROMMON to bypass the saved startup configuration, then merges it back so no configuration is lost.
switch: prompt.switch: SWITCH_IGNORE_STARTUP_CFG=1switch: boot flash:packages.confSwitch# copy startup-config running-configSwitch(config)# enable secret <new-password>Switch(config)# no system ignore startupconfigSwitch# write memorySwitch# reloadOn stack members, recover per-switch; the stack will re-form afterwards.